Skip to content

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

Package listing

@kody/vercel

src/list-env-vars.js

14 lines · 581 B · JavaScript
import { listEnvVars } from './vercel.js'

/**
 * List environment-variable metadata for a project. Values are never returned.
 * @param {Object} input
 * @param {string} input.project Project id or name.
 * @returns {Promise<{ items: Array<{ id: string | null, key: string, type: string | null, target: unknown }>, project: string }>}
 * @example
 * import listEnvVars from 'kody:@kody/vercel/list-env-vars'
 * const { items } = await listEnvVars({ project: 'example-app' })
 */
export default async function listEnvVarsEntrypoint(input = {}) {
	return await listEnvVars(input)
}