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

Readme

Keywords

Package Sidebar

Install

npm i json-watcher

Weekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • clement-ts
  • gautaz
  • jokesterfr