1.0.0 • Published 9 years ago

@intactile/node-env v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 years ago

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()