json-event-emitter
A watcher for JSON files handler by EventEmitter
Tech
This module is base in others modules (fs, events)
Installation
$ npm install -s json-event-emitter
Creating instance from file path
Our test.json file
Create instance
const path = ;const JsonEventEmitter = ; var someJson = path: path;// Get the data as JS Objectconsole
Updating changes
Modify a specific property change on the JSON file.
someJSON;
Listening events change
Register a function that is executed when a change is made.
someJson