stream-fifo

0.0.2 • Public • Published

stream-fifo

A FIFO in streams:

var fifo = require('stream-fifo'),
    q = fifo(2);
 
q.write('hi');
q.write('there');
q.write('nice');
q.write('person');
 
// says 'nice' 'person'
q.stack().on('data', function(data) {
    console.log(data);
});

api

fifo(capacity)

Creates a writable stream, with a specified capacity.

Readme

Keywords

Package Sidebar

Install

npm i stream-fifo

Weekly Downloads

0

Version

0.0.2

License

BSD

Last publish

Collaborators

  • tmcw