trace-machine

0.0.5 • Public • Published

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'

Package Sidebar

Install

npm i trace-machine

Weekly Downloads

4

Version

0.0.5

License

MIT

Last publish

Collaborators

  • hex13