1.0.2 • Published 3 years ago

json-config-controller v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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