markbao/node-envious — pull request #4 by ecto (2011-10-24 23:54:11+00:00)
Title: Make environment object testable against string value of environment

For example,

test.js:

console.log(env);
console.log(env == 'production');
console.log(env == 'staging');

running

NODE_ENV=production node test.js

will get you

{ key: value }
true
false