node-env-type
Version:
NodeJS Environment Type detection.
18 lines (17 loc) • 406 B
TypeScript
/**
* Refreshes all flags from `NODE_ENV` variable.
*
* @param otherVariable
* Optional override, to use an alternative variable.
*/
declare function refresh(otherVariable?: string): boolean;
export declare const env: {
refresh: typeof refresh;
isDev: boolean;
isUAT: boolean;
isSIT: boolean;
isCI: boolean;
isTest: boolean;
isProd: boolean;
};
export {};