eventemitter-promise
v0.0.1
Published
Event Emitter with lazy promise.
Downloads
2
Maintainers
Readme
eventemitter-promise
Event Emitter with lazy promise ! (see http://github.com/bios21/superlazypromise)
Installation
Then install it via npm:
$ npm install --save eventemitter-promise
Or via bower:
$ bower install --save eventemitter-promise
Example Usage
Each listener are stored to be fired later on a SuperLazyPromise
| emit\on | event | event.* | event.context | event.context! | |:--------------:|:-----:|:-------:|:-------------:|:--------------:| | event | ✓ | ✓ | ✓ | ✓ | | event.context | ✓ | | ✓ | ✓ | | event.context! | | | ✓ | ✓ |
! : Firing an event on strict context (event.context!
) is not yet implemented.
const EventEmitter = require('eventemitter-promise');
class Clazz extends EventEmitter {
emit() {
}
on() {
}
}
License
ISC License. See the LICENSE
file.