@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
8 lines • 394 B
TypeScript
/**
* Gets an environment variable value, or returns a fallback if not set.
* @param {string} key - The environment variable key.
* @param {string} [fallback] - The fallback value if not set.
* @returns {string|undefined} The environment variable value or fallback.
*/
export default function getEnv(key: string, fallback?: string): string | undefined;
//# sourceMappingURL=getEnv.d.ts.map