envdev
v0.0.2
Published
Detect develop mode from the command line option `--dev`.
Downloads
5
Readme
envdev
Usage
somescript.js
var envdev = require('envdev');
if(envdev.isDev()){
console.log('dev');
} else {
console.log('prod');
}
node somescript.js
// prod
node somescript.js --dev
// dev