Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/vercel

src/list-domains.js

14 lines · 578 B · JavaScript
import { listDomains } from './vercel.js'

/**
 * List account domains, or project domains when `project` is set.
 * @param {Object} [input]
 * @param {string} [input.project] Project id or name for project domains.
 * @returns {Promise<{ items: Array<{ name: string | null, verified: boolean | null }>, pagination: object | null }>}
 * @example
 * import listDomains from 'kody:@kody/vercel/list-domains'
 * const { items } = await listDomains({ project: 'example-app' })
 */
export default async function listDomainsEntrypoint(input = {}) {
	return await listDomains(input)
}