envm

0.0.3 • Public • Published

node-envm Build Status

Environment management for nodejs

Installation

$ npm install envm

Usage

var env = require('envm')(module);
env.exports('test', function() {
  console.log('under test');
})
 
env.exports('production', function() {
  console.log('under production');
})

And then you should run your node process in this way:

$ NODE_ENV=test node app
> under test
$ NODE_ENV=production node app
> under production

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i envm

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • yorkie