Skip to content

m19c/nstrap-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nstrap-environment

This nstrap modules provides the current environment using process.env.NODE_ENV. Optionally you can pass options to define the default environment.

npm version Dependencies

Install

npm i --save nstrap-environment

Example

var bootstrap = require('nstrap')();

bootstrap.add(require('nstrap-environment')({
  defaultEnvironment: 'production'
}));

bootstrap.run()
  .then(function (kernel) {
    console.log(kernel.environment); // production
  })
;

Run the tests

gulp test

About

This nstrap modules provides the current environment using process.env.NODE_ENV.

Resources

Stars

Watchers

Forks

Packages

No packages published