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

11 lines
183 B
TypeScript
Raw Normal View History

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