debug-flags
Easy way to check the environment variable NODE_DEBUG
for the presence of the nested flags.
Install
$ npm install --save debug-flags
Usage example
// suppose NODE_DEBUG="app lib:func"var isDebugEnabled = ; ; // => true; // => true; // => false; // => false; // => true; // => true
Have fun!