monfig
Environment aware, asynchronous, folder based config building for Nodejs
API
This package is basically the way Sails.js does its configuration. See their docs to get a more in depth look at how the folder structure and naming decides the config objects structure.
monfig.build(options):Promise<Object>
Async config
/config/foo.js
{ const response = await // response == { // "bar": "lol" // } return response}
app.js
{ const config = await // config == { // "foo": { // "bar": "lol" // } // }}