en

Tiny environment helper

npm install en
2 downloads in the last week
13 downloads in the last month

env

Creates a global env function object. Just to be terse.

require("en");

console.log(env.development);
//true
console.log(env.production);
//undefined

console.log(env('development'));
//true

console.log(env('Your env is: ' + env));
//Your env is: development

To set the current env, use the standard NODE_ENV environment variable.

$ NODE_ENV=production node app.js

License

MIT

npm loves you