1.0.0 • Published 3 years ago
conify v1.0.0
Conify
Conify is a simple NPM package that simplifies the process of managing multiple configuration files
Installation
npm install conify --save
Usage
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');
Good To Know
Customize Config Name
// 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
Example Structure
config
+-- foo.json
+-- bar.json
index.js
Contributing
Pull requests are welcome.
1.0.0
3 years ago