watchly

0.2.0 • Public • Published

watchly

very simple object watcher using very simple events (evently)

Installation

$ npm install watchly

Usage

var watchly = require('../index');
 
var w = new watchly.Watcher();
console.log(w.prototype);
 
function log(a) {
    console.log("triggered with " + a);
}
 
w.on(1, log);
w.set(1, 5);
console.log("w[1] has value:", w.get(1));

Readme

Keywords

none

Package Sidebar

Install

npm i watchly

Weekly Downloads

2

Version

0.2.0

License

MIT

Last publish

Collaborators

  • dtudury