Skip to content

d4n5h/json-config-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Controls .json files with a deep proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published