event-promisify
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "event-promisify", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Promisification for EventEmitters.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,1 +10,17 @@ # event-promisify | ||
Just run ```npm install event-promisify``` | ||
# documentation | ||
This implementation supports basic promisification, event filtering, aggregation and custom specification | ||
of error events. | ||
## Examples | ||
```javascript | ||
const promisifyEvent = require('event-promisify')(YOUR_PROMISE_IMPLEMENTATION_HERE); | ||
promisifyEvent(someEventEmitter, 'someEvent') | ||
.then(...) | ||
``` | ||
For now check test.js and the source for further information. |
3843
26