1
0
Fork 0
js-utils/src/Env.ts

13 lines
208 B
TypeScript
Raw Normal View History

const ENV_DEBUG = 'DEBUG';
/**
* Test if DEBUG mode is set.
*
* TODO: check variable value as well
*
* @internal
*/
export function isDebug(): boolean {
return Reflect.has(process.env, ENV_DEBUG);
2020-03-29 13:43:52 +00:00
}