joiner-stream

0.0.2 • Public • Published

joiner-stream

node.js stream that joins multiple pipe inputs into a single unified stream.

build status

Installation

Install via npm:

$ npm install joiner-stream

Examples

Join multiple streams

The reason I wrote this was to merge multiple object streams into a single stream:

var joiner = require('joiner-stream');
var aggregator = joiner();
 
// Stream 1
makeStreamOfObjects()
  .pipe(aggregator);
 
// Stream 2
makeStreamOfObjects()
  .pipe(aggregator);
 
// Stream 3
makeStreamOfObjects()
  .pipe(aggregator);
 
aggregator.on('data', console.log);
aggregator.on('end', process.exit);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    4
  • 0.0.1
    1

Package Sidebar

Install

npm i joiner-stream

Weekly Downloads

5

Version

0.0.2

License

BSD

Last publish

Collaborators

  • eugeneware