nstrap-environment

1.0.0 • Public • Published

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

/nstrap-environment/

    Package Sidebar

    Install

    npm i nstrap-environment

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • mrboolean