1.1.0 • Published 9 years ago
events2 v1.1.0
events2 
ES2015 implementation of nodejs EventEmitter
Installation
npm install events2Run Tests
npm testWhat's different from core EventEmitter?
emitter.off([eventName, listener])methodThis is an alias for core
emitter.removeListenerANDemitter.removeAllListeners. Removes all listeners, or those of the specified event, or specified listener.no
defaultMaxListenerslimit- as a result – no
getMaxListners()/setMaxListeners() - no
listeners()andlistenersCount()
Notes
As event listeners storage is a Set(), if you add same listener for same 'event' repeatedly, listener will be called only once after 'event' was emited (listener will be called as many times as it was added in nodejs core EventEmitter)