trace-machine
v0.0.5
Published
Trace Machine tracks JS objects in real time and emit events through emitter
Downloads
7
Maintainers
Readme
Trace Machine tracks JS objects in real time and emit events through emitter
Usage:
const createSpy = require('trace-machine');
const logger = new EventEmitter;
const spy = createSpy({logger});
spy({a: 123}).a; // emitted event 'get'
available events: 'get', 'set', 'call', 'ret', 'new'