json-watcher

0.1.0 • Public • Published

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))
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    3

Package Sidebar

Install

npm i json-watcher

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • clement-ts
  • gautaz
  • jokesterfr