1.0.0 • Published 9 years ago
@intactile/node-env v1.0.0
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()