json-config-controller
v1.0.2
Published
Control .json files with a deep proxy
Downloads
2
Maintainers
Readme
json-config-controller
Controls .json files with a deep proxy
Install
$ npm install json-config-controller
Example
const configController = require('json-config-controller');
const cc = new configController("./config.json");
const config = cc.data;
cc.on('change', (data)=>{
console.log(data)
})
config.port = 3000; // Will automatically be saved in the config.json file