node.js stream that joins multiple pipe inputs into a single unified stream
Want to see pretty graphs? Log in now!
npm install joiner-stream
|1||downloads in the last day|
|29||downloads in the last week|
|65||downloads in the last month|
|Last Published By|
|Version||0.0.2 last updated 8 months ago|
|Keywords||join, intersect, aggregate, aggregator, stream, streaming, streams|
node.js stream that joins multiple pipe inputs into a single unified stream.
Install via npm:
$ npm install joiner-stream
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);