0.2.0 • Published 11 years ago

watchly v0.2.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

#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));
0.2.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago