This repository has been archived on 2022-07-06. You can view files and clone it, but cannot push or open issues or pull requests.
websocket-webcam/node_modules/jsftp/node_modules/event-stream/node_modules/stream-combiner
jefklak 962764c034 initial commit 2014-02-06 19:23:06 +01:00
..
node_modules/duplexer initial commit 2014-02-06 19:23:06 +01:00
test initial commit 2014-02-06 19:23:06 +01:00
.npmignore initial commit 2014-02-06 19:23:06 +01:00
.travis.yml initial commit 2014-02-06 19:23:06 +01:00
LICENSE initial commit 2014-02-06 19:23:06 +01:00
README.md initial commit 2014-02-06 19:23:06 +01:00
index.js initial commit 2014-02-06 19:23:06 +01:00
package.json initial commit 2014-02-06 19:23:06 +01:00

README.md

stream-combiner

<img src=https://secure.travis-ci.org/dominictarr/stream-combiner.png?branch=master>

pipeline (stream1,...,streamN)

Turn a pipeline into a single stream. pipeline 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.

connect is an alias for pipeline.


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

License

MIT