moonstick-module-config-loader
v0.2.0
Published
Load project config based on process.env.NODE_ENV with a simple require
Downloads
7
Readme
#moonstick-module-config-loader
Load project config quickly with out specifying crazy paths. Assumes the following directory structure by default.
/root
/config
dev.js
qa.js
prod.js
###Usage
var config = require('config-loader')();
######Optional directory
var config = require('config-loader')(process.cwd() + '/wierd/place/for/a/config');