Skip to content

intactile/node-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-env

Check the environment type: test, debug, development, production.

Install

npm install @intactile/node-env

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

Status

Build Status

About

Check the environment type: test, debug, development, production.

Resources

License

Stars

Watchers

Forks

Packages

No packages published