node-env-fallback

NODE_ENV with fallback

node-env-fallback

NODE_ENV with fallback.

npm:

$ npm install node-env-fallback
var env = require('node-env-fallback');
console.log(env);

Without NODE_ENV:

$ node env.js
development

With NODE_ENV:

$ NODE_ENV=production node env.js
production

The MIT License

Copyright © 2013 Seiya Konno <nulltask@gmail.com>