Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yields/buffer-events
- Owner: yields
- Created: 2014-06-27T13:15:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T14:43:13.000Z (over 10 years ago)
- Last Synced: 2024-10-24T13:40:52.747Z (2 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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)