Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yields/buffer-events

Buffer Event Emitter events.
https://github.com/yields/buffer-events

Last synced: 14 days ago
JSON representation

Buffer Event Emitter events.

Awesome Lists containing this project

README

        

## buffer-events

Buffer node's `EventEmitter` events until `flush()` is called.

### Example

var buffer = require('buffer-events');
var Emitter = require('events').EventEmitter;

var emitter = new Emitter;
var flush = buffer(emitter);

emitter.on('foo', log);
emitter.emit('foo', 'baz');

flush(); // => "baz"

### License

(MIT)