event-driven-object
v1.0.6
Published
Simple event driver object
Downloads
2
Readme
Event Driver
Simple event driver object
Usage
npm install event-driven-object
var eventEmmiter = require('event-driven-object')
You can add/remove custom events
model.on('eventName', callback) // Subscribe to event with callback
model.off('eventName') // Unsubscribe event listener
model.emit('eventName', ...args) // emit event