config-helper
v1.2.0
Published
Environment config helper
Downloads
64
Readme
config-helper
Provide a simple config loader based on NODE_ENV
installation
npm install config-helper
Default usage
config/
developement.js
test.js
production.js
const config = require('config-helper')({
path: 'config/'
});
Multi usage
path/config/
developement/
core.js
database.json
...
test/
production/
const config = require('config-helper')({
path :'path/config',
multi :true
});