json-observer

2.0.0 • Public • Published

JSONObserver wather

watching JSON data change

##how to use

let {JSONObserver} = require('json-observer');

let obj = {a: '',b: ''};
let hander1 = function (obj,oldval,newval) {
    console.log('had invoked...');
};
new JSONObserver(obj, hander1);

obj.a = 'a';

Readme

Keywords

none

Package Sidebar

Install

npm i json-observer

Weekly Downloads

1

Version

2.0.0

License

ISC

Last publish

Collaborators

  • richardgong1987