Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
node.js stream that joins multiple pipe inputs into a single unified stream
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

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);
Something went wrong with that request. Please try again.