@intactile/node-env
v1.0.0
Published
Check the environment type: test, debug, development, production.
Downloads
5
Readme
node-env
Check the environment type: test, debug, development, production.
Install
npm install https://github.com/intactile/node-env.git --save
Usage
Use the process.env node object.
Set the environement type : process.env.NODE_ENV = ['test' | 'development' | 'production']
process.env.DEBUG = ['true' | 'false']
And ckeck the enviroment type with one of : isTest(), isDebug(), isDev(), isProd()