env-conf-loader
Why?
load configs from file/directory with current, merge object by object's key and environment variable.
Install
npm install env-conf-loader
Usage
var loader =
load a json file
foo.json
var conf = // NODE_ENV is undefinedconsole // 1// NODE_ENV is productionconsole // 2// NODE_ENV is developmentconsole // 3
async load
from cache
Test
npm test