@intactile/node-env

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @intactile/node-env

Weekly Downloads

2

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • intactile