{"_id":"collect-all","_rev":"51848","name":"collect-all","description":"Returns a stream which becomes readable once all input is received","dist-tags":{"latest":"1.0.4"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-03T10:15:50.000Z","created":"2015-07-02T23:28:11.462Z","1.0.4":"2020-09-26T14:12:48.748Z","1.0.3":"2017-06-10T10:39:23.438Z","1.0.2":"2016-04-14T11:15:35.703Z","1.0.1":"2016-02-13T11:18:41.859Z","1.0.0":"2016-02-04T14:52:22.181Z","0.2.1":"2016-01-02T21:59:10.111Z","0.2.0":"2015-12-22T22:39:40.125Z","0.1.0":"2015-07-03T22:46:50.467Z","0.0.0":"2015-07-02T23:28:11.462Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"versions":{"1.0.4":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.4","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":["concat","stream","collect","buffers","concentate"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/tape test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"stream-connect":"^1.0.2","stream-via":"^1.0.4"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","tape":"^4.6.3"},"gitHead":"93630719d84894d5b78eb6ff40b22506b7afcaf9","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@1.0.4","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"shasum":"50cd7119ac24b8e12a661f0f8c3aa0ea7222ddfc","size":3547,"noattachment":false,"key":"/collect-all/-/collect-all-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-1.0.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/collect-all_1.0.4_1601129568574_0.3082668642206212"},"_hasShrinkwrap":false,"publish_time":1601129568748,"_cnpm_publish_time":1601129568748},"1.0.3":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.3","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":["concat","stream","collect","buffers","concentate"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","cover":"istanbul cover ./node_modules/.bin/tape test/*.js && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage; echo"},"dependencies":{"stream-connect":"^1.0.2","stream-via":"^1.0.4"},"devDependencies":{"coveralls":"^2.13.1","jsdoc-to-markdown":"^3.0.0","tape":"^4.6.3"},"gitHead":"5a2866dbf34438d42b19b3efdd4321d76b07337f","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@1.0.3","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"1abcc20448b58a1447487fcf34130e9512b0acf8","size":14053,"noattachment":false,"key":"/collect-all/-/collect-all-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-1.0.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/collect-all-1.0.3.tgz_1497091161959_0.8446791539900005"},"directories":{},"publish_time":1497091163438,"_hasShrinkwrap":false,"_cnpm_publish_time":1497091163438},"1.0.2":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.2","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"stream-connect":"^1.0.2","stream-via":"^1.0.3"},"devDependencies":{"jsdoc-to-markdown":"^1.3.3","tape":"^4.5.1"},"gitHead":"c81377394a4bf817acf7e61befdf4f7d7e4e1b6a","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@1.0.2","_shasum":"39450f1e7aa6086570a006bce93ccf1218a77ea1","_from":".","_npmVersion":"3.8.7","_nodeVersion":"5.10.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"39450f1e7aa6086570a006bce93ccf1218a77ea1","size":3467,"noattachment":false,"key":"/collect-all/-/collect-all-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-1.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/collect-all-1.0.2.tgz_1460632533188_0.6129793878644705"},"directories":{},"publish_time":1460632535703,"_cnpm_publish_time":1460632535703,"_hasShrinkwrap":false},"1.0.1":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"stream-connect":"^1.0.2","stream-via":"^1.0.1","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.3.3","tape":"^4.4.0"},"gitHead":"0e6e1c59ae5b8ae722f46a779e8c22cd289c7427","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@1.0.1","_shasum":"404d7e8eb9c3f90ab9a8b2291d7a769ee14f6a92","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"404d7e8eb9c3f90ab9a8b2291d7a769ee14f6a92","size":3345,"noattachment":false,"key":"/collect-all/-/collect-all-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/collect-all-1.0.1.tgz_1455362318450_0.40662859566509724"},"directories":{},"publish_time":1455362321859,"_cnpm_publish_time":1455362321859,"_hasShrinkwrap":false},"1.0.0":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"stream-connect":"^1.0.2","stream-via":"~0.1.0","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.3.3","tape":"^4.4.0"},"gitHead":"c31c8c7404aa6c75854be3c1891b1d98444075c7","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@1.0.0","_shasum":"52d1139ba7b826e797c1a6c233f8b37e5b979e6d","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.5.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"52d1139ba7b826e797c1a6c233f8b37e5b979e6d","size":3346,"noattachment":false,"key":"/collect-all/-/collect-all-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/collect-all-1.0.0.tgz_1454597540928_0.27858982468023896"},"directories":{},"publish_time":1454597542181,"_cnpm_publish_time":1454597542181,"_hasShrinkwrap":false},"0.2.1":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.1","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"stream-connect":"^1.0.1","stream-via":"~0.1.0","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"f384c534820c0a2c5bed0a733f4fa6a0330d2b9b","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@0.2.1","_shasum":"7225fb4585c22d4ffac886f0abaf5abc563a1a6a","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"7225fb4585c22d4ffac886f0abaf5abc563a1a6a","size":2937,"noattachment":false,"key":"/collect-all/-/collect-all-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-0.2.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1451771950111,"_cnpm_publish_time":1451771950111,"_hasShrinkwrap":false},"0.2.0":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.2.0","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"stream-connect":"~0.1.0","stream-via":"~0.1.0","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"1606f5515bff1eba1fc8fe33f7cb3e4ac840078d","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@0.2.0","_shasum":"3413c60081db4bf81031b002801641f5f7574996","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"3413c60081db4bf81031b002801641f5f7574996","size":2932,"noattachment":false,"key":"/collect-all/-/collect-all-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-0.2.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1450823980125,"_cnpm_publish_time":1450823980125,"_hasShrinkwrap":false},"0.1.0":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"Returns a stream which becomes readable once all input is received","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"stream-connect":"~0.1.0","stream-via":"~0.1.0","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"25cc674fbd0d7b43d2a6ed49d9dd89a272b5dc97","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@0.1.0","_shasum":"e515433b9652291fe019826136b7c39d10a8805a","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"e515433b9652291fe019826136b7c39d10a8805a","size":2651,"noattachment":false,"key":"/collect-all/-/collect-all-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-0.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435963610467,"_cnpm_publish_time":1435963610467,"_hasShrinkwrap":false},"0.0.0":{"name":"collect-all","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.0.0","description":"collect-all","repository":{"type":"git","url":"git+https://github.com/75lb/collect-all.git"},"license":"MIT","main":"./lib/collect-all.js","bin":{"collect-all":"bin/cli.js"},"keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"bugs":{"url":"https://github.com/75lb/collect-all/issues"},"homepage":"https://github.com/75lb/collect-all#readme","_id":"collect-all@0.0.0","_shasum":"2b569d328561640f5aae1d279215fae1ab2f4bb5","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"2b569d328561640f5aae1d279215fae1ab2f4bb5","size":1770,"noattachment":false,"key":"/collect-all/-/collect-all-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-all/download/collect-all-0.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435879691462,"_cnpm_publish_time":1435879691462,"_hasShrinkwrap":false}},"readme":"[![view on npm](https://img.shields.io/npm/v/collect-all.svg)](https://www.npmjs.org/package/collect-all)\n[![npm module downloads](https://img.shields.io/npm/dt/collect-all.svg)](https://www.npmjs.org/package/collect-all)\n[![Build Status](https://travis-ci.org/75lb/collect-all.svg?branch=master)](https://travis-ci.org/75lb/collect-all)\n[![Dependency Status](https://david-dm.org/75lb/collect-all.svg)](https://david-dm.org/75lb/collect-all)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_collect-all\"></a>\n\n***DEPRECATED. This package has been replaced by [stream-read-all](https://github.com/75lb/stream-read-all) which does the same job but with a Promises interface.***\n\n\n## collect-all\nReturns a stream which fires a callback and becomes readable once all input is received.\n\nBy default the callback is invoked with a Buffer instance containing all concatenated input. If you set the option `{ objectMode: true }` the callback is invoked with an array containing all objects received.\n\n<a name=\"exp_module_collect-all--collectAll\"></a>\n\n### collectAll([callback], [options]) ⇒ [<code>Duplex</code>](https://nodejs.org/api/stream.html#stream_class_stream_duplex) ⏏\n**Kind**: Exported function\n\n| Param | Type | Description |\n| --- | --- | --- |\n| [callback] | <code>function</code> | Called once with the collected input data (by default a `Buffer` instance, or array in `objectMode`.). The value returned by this callback function will be passed downstream. |\n| [options] | <code>object</code> | [Stream options](https://nodejs.org/dist/latest-v5.x/docs/api/stream.html#stream_new_stream_readable_options) object, passed to the constructor for the stream returned by `collect-all`. If the callback function supplied returns a non-string/buffer value, set `options.objectMode` to `true`. |\n\n**Example**\nAn example command-line client script - string input received at stdin is stamped with `received` then written to  stdout.\n```js\nvar collectAll = require('collect-all')\nprocess.stdin\n  .pipe(collectAll(function (input) {\n    input = 'received: ' + input\n    return input\n  }))\n  .pipe(process.stdout)\n```\n\nAn object-mode example:\n```js\nvar collectAll = require('collect-all')\n\nfunction onAllCollected (collected) {\n  console.log('Objects collected: ' + collected.length)\n}\n\nvar stream = collectAll(onAllCollected, { objectMode: true })\nstream.write({})\nstream.write({})\nstream.end({}) // outputs 'Objects collected: 3'\n```\n\n* * *\n\n&copy; 2015-17 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/collect-all#readme","bugs":{"url":"https://github.com/75lb/collect-all/issues"},"license":"MIT"}