topkat-utils
Version:
A comprehensive collection of TypeScript/JavaScript utility functions for common programming tasks. Includes validation, object manipulation, date handling, string formatting, and more. Zero dependencies, fully typed, and optimized for performance.
9 lines (8 loc) • 480 B
TypeScript
/** Parse one dimention object undefined, true, false, null represented as string will be converted to primitives */
export declare function parseEnv(env: any): Record<string, string | number | boolean | null | undefined>;
/** READ ONLY, get the environment variables (Eg. NODE_ENV) with parsed values ("true" => true, "4" => 4, "null" => null). On env variables all values are strings
* use it like ENV().NODE_ENV
*/
export declare function ENV(): {
[key: string]: any;
};