1.2.0 • Published 8 years ago
config-helper v1.2.0
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
});