Provide a simple config loader based on NODE_ENV
npm install config-helper
config/
developement.js
test.js
production.js
const config = require('config-helper')({
path: 'config/'
});
path/config/
developement/
core.js
database.json
...
test/
production/
const config = require('config-helper')({
path :'path/config',
multi :true
});