33 lines
1.7 KiB
JSON
33 lines
1.7 KiB
JSON
{
|
|
"name": "stream-combiner",
|
|
"version": "0.0.0",
|
|
"homepage": "https://github.com/dominictarr/stream-combiner",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/dominictarr/stream-combiner.git"
|
|
},
|
|
"dependencies": {
|
|
"duplexer": "0.0.2"
|
|
},
|
|
"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",
|
|
"readme": "# stream-combiner\n\n<img src=https://secure.travis-ci.org/dominictarr/stream-combiner.png?branch=master>\n\n## pipeline (stream1,...,streamN)\n\nTurn a pipeline into a single stream. `pipeline` 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> `connect` is an alias for `pipeline`.\n\n``` js\n\n es.pipeline( //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 callback(null\n , inspect(JSON.parse(data))) //render it nicely\n }),\n process.stdout // pipe it to stdout !\n )\n```\n\n## License\n\nMIT\n",
|
|
"_id": "stream-combiner@0.0.0",
|
|
"description": "<img src=https://secure.travis-ci.org/dominictarr/stream-combiner.png?branch=master>",
|
|
"dist": {
|
|
"shasum": "e0b7200a986c630eef402100cef434714b4db89c"
|
|
},
|
|
"_from": "stream-combiner@0.0.0"
|
|
}
|