1.0.0 • Published 9 years ago

nstrap-environment v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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