{"name":"stream-combiner","version":"0.0.1","homepage":"https://github.com/dominictarr/stream-combiner","repository":{"type":"git","url":"git://github.com/dominictarr/stream-combiner.git"},"dependencies":{"duplexer":"~0.0.3"},"devDependencies":{"tape":"0.0.4","event-stream":"~3.0.7"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"'Dominic Tarr'","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","_id":"stream-combiner@0.0.1","description":"<img src=https://secure.travis-ci.org/dominictarr/stream-combiner.png?branch=master>","dist":{"shasum":"61ef96766540661b8a18422f7876bbb6d2184c00","tarball":"http://registry-npm.ywwl.com/stream-combiner/download/stream-combiner-0.0.1.tgz","integrity":"sha512-d+OEvB9XSeFq6U6pCRfWdZus+yii2WQcUTwylpGRmMBCuWkhYQnj9BcfnDHnOI00gdn0YAXI2eE1gPww5nFHrg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH91naMoMYvMYPFi0jvhl7Nn62ccbY6V7JO7UyFpGkuNAiEAuXf+mfjpTePYBlE61QQfKW72VNaSGwxQuKQLdgyEEmo="}],"size":2259,"noattachment":false,"key":"/stream-combiner/-/stream-combiner-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"readme":"# stream-combiner\n\n[![npm version](https://img.shields.io/npm/v/stream-combiner.svg)](https://npmjs.org/package/stream-combiner) \n[![Travis CI](https://travis-ci.org/dominictarr/stream-combiner.svg)](https://travis-ci.org/dominictarr/stream-combiner)\n\n## Combine (stream1,...,streamN)\n\nTurn a pipeline into a single stream. `Combine` returns a stream that writes to the first stream\nand reads from the last stream. \n\nListening for 'error' will recieve errors from all streams inside the pipe.\n\n```js\nvar Combine = require('stream-combiner')\nvar es      = require('event-stream')\n\nCombine(                                  // connect streams together with `pipe`\n  process.openStdin(),                    // open stdin\n  es.split(),                             // split stream to break on newlines\n  es.map(function (data, callback) {      // turn this async function into a stream\n    var repr = util.inspect(JSON.parse(data))  // render it nicely\n    callback(null, repr)\n  }),\n  process.stdout                          // pipe it to stdout !\n)\n```\n\nCan also be called with an array:\n\n```js\nvar combinedStream = Combine([\n  stream1,\n  stream2,\n]);\n```\n\nOr to combine gulp plugins:\n\n```js\nfunction coffeePipe() {\n  return Combine(\n    coffeescript(),\n    coffeelint.reporter('fail').on('error', function(){\n      gutil.beep()\n      gulp.run('lint')\n    })\n}\n\n//usage:\ngulp.src().pipe(coffeePipe());\n```\n\n## License\n\nMIT\n","publish_time":1359667079894,"_cnpm_publish_time":1359667079894,"dist-tags":{"latest":"0.2.2"}}