json-watcher
v0.1.0
Published
Watch and parse a json file
Downloads
5
Readme
Json watcher
This library purpose is to watch and parse a given json file.
Install
npm install --save json-watcher
Usage
let watch = require('json-watcher')
watch(jsonFile.path).then(watcher => {
watcher.on('error', error => console.log('error', error))
watcher.on('change', json => console.log('json', json))
})