Conify is a simple NPM package that simplifies the process of managing multiple configuration files
npm install conify --save
const Conify = require('conify');
// The directory of your config files
var config = new Conify('./config');
// Get the property "bar" from the file "config/foo.json"
config.get('foo.bar');
// config/foo.json
{
"conify_name": "test",
"port": 5000
}
// index.js
const Conify = require('conify');
var config = new Conify('./config');
config.get('test.port'); // 5000
config.get('foo.port'); // null
config
+-- foo.json
+-- bar.json
index.js
Pull requests are welcome.