{"name":"pull-cat","description":"concatenate pull-streams","version":"1.0.3","homepage":"https://github.com/dominictarr/pull-cat","repository":{"type":"git","url":"git://github.com/dominictarr/pull-cat.git"},"dependencies":{"pull-stream":"~2.10"},"devDependencies":{"tape":"~0.3.3"},"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":"pull-cat@1.0.3","dist":{"shasum":"1c51a8cfaece4cce356fd570dd82c8c6baa32225","tarball":"http://registry-npm.ywwl.com/pull-cat/download/pull-cat-1.0.3.tgz","integrity":"sha512-yHGMMZ75OOBHTMEC3CINpz+oCitjIs0SfymvIfWQOtksgjkCW1U02oPSYivyT2ItN+3Cg1KVd3fVsI3IHS87Fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICeBQ1/ificSsgajG3+Un4cjIOWq7GBfovWKH23upyVtAiEAxKNBf/kDHzDpW1zNvRVUrEM5/r7a4P+RcOLfPeAxbmo="}],"size":1786,"noattachment":false,"key":"/pull-cat/-/pull-cat-1.0.3.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"readme":"# pull-cat\n\n> Concatenate pull-streams\n\n## Install\n\n```shell\nnpm install --save pull-cat\n```\n\n## Example\n\nConstruct a new source stream from a sequential list of source streams,\nreading from each one in turn until it ends, then the next, etc.\nIf one stream errors, then the rest of the streams are aborted immediately.\nIf the cat stream is aborted (i.e. if it's sink errors) then all the streams\nare aborted.\n\nA cat stream is a moderately challenging stream to implement,\nespecially in the context of error states.\n\n```js\nvar cat = require('pull-cat')\nvar pull = require('pull-stream')\n\npull(\n  cat([\n    pull.values([1,2,3]),\n    pull.values([4,5,6])\n  ]),\n  pull.log()\n)\n// 1\n// 2\n// 3\n// 4\n// 5\n// 6\n```\n\n\n## Api\n\n### `cat = require('pull-cat')`\n\n### `stream = cat(streams)`\n\nReads from each stream in `streams` until finished.\n\nIf a stream errors, stop all the streams.\nif the concatenated stream is aborted, abort all the streams,\nthen callback to the aborter.\n\n## License\n\nMIT\n","publish_time":1365123240023,"_cnpm_publish_time":1365123240023,"dist-tags":{"latest":"1.1.11"}}