node-listenable
listenable is a super simple event emitter
Install
npm install listenable
API
var listenable = // new instance // add event listenerlistenable // add event listener that only triggers oncelistenable // remove specific event listener (will remove all listeners that === fn)listenable // remove all listeners for a namelistenable // trigger an event (additional arguments are passed to the listeners)listenable // get listeners for an eventlistenablelistenerseventName // null or potentially empty Array of listeners
Examples
var Listenable = var listenable = listenable listenablelistenablelistenable
License
listenable is open source software under the [zlib license][LICENSE].