Skip to content
No description or website provided.
Latest commit 5a8ab6f Jun 5, 2015 @dominictarr 0.2.2
Failed to load latest commit information.
test failing test for 0-argument combine() May 8, 2014
.gitignore initial Nov 26, 2012
.travis.yml initial Nov 27, 2012
LICENSE initial Nov 27, 2012 Follow formatting conventions of other examples Jun 4, 2015
index.js Allow passing array of streams May 18, 2014
package.json 0.2.2 Jun 5, 2015


npm version Travis CI

Combine (stream1,...,streamN)

Turn a pipeline into a single stream. Combine returns a stream that writes to the first stream and reads from the last stream.

Listening for 'error' will recieve errors from all streams inside the pipe.

var Combine = require('stream-combiner')
var es      = require('event-stream')

Combine(                                  // connect streams together with `pipe`
  process.openStdin(),                    // open stdin
  es.split(),                             // split stream to break on newlines (data, callback) {      // turn this async function into a stream
    var repr = util.inspect(JSON.parse(data))  // render it nicely
    callback(null, repr)
  process.stdout                          // pipe it to stdout !

Can also be called with an array:

var combinedStream = Combine([

Or to combine gulp plugins:

function coffeePipe() {
  return Combine(
    coffeelint.reporter('fail').on('error', function(){




Something went wrong with that request. Please try again.