{"_id":"callback-stream","_rev":"1927626","name":"callback-stream","description":"A pipeable stream that calls your callback","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"matteo.collina","email":""}],"time":{"modified":"2021-12-09T13:54:16.000Z","created":"2013-05-10T18:40:38.546Z","1.1.0":"2015-08-04T17:06:00.947Z","1.0.2":"2013-09-11T09:41:23.534Z","1.0.1":"2013-09-11T09:39:36.562Z","1.0.0":"2013-05-10T18:40:38.546Z"},"users":{},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"repository":{"type":"git","url":"git+https://github.com/mcollina/callback-stream.git"},"versions":{"1.1.0":{"name":"callback-stream","version":"1.1.0","description":"A pipeable stream that calls your callback","main":"index.js","scripts":{"lint":"standard","test":"tap test.js"},"precommit":["lint","test"],"website":"https://github.com/mcollina/callback-stream","repository":{"type":"git","url":"git+https://github.com/mcollina/callback-stream.git"},"bugs":{"url":"http://github.com/mcollina/callback-stream/issues"},"keywords":["callback","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","dependencies":{"inherits":"^2.0.1","readable-stream":"> 1.0.0 < 3.0.0"},"devDependencies":{"pre-commit":"^1.1.1","standard":"^5.0.0","tap":"~0.4.2","tape":"^4.0.2"},"gitHead":"056a91ba65e2ffb31c81b26a9c81112e07953219","homepage":"https://github.com/mcollina/callback-stream#readme","_id":"callback-stream@1.1.0","_shasum":"4701a51266f06e06eaa71fc17233822d875f4908","_from":".","_npmVersion":"2.13.2","_nodeVersion":"2.5.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"dist":{"shasum":"4701a51266f06e06eaa71fc17233822d875f4908","size":3177,"noattachment":false,"key":"/callback-stream/-/callback-stream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/callback-stream/download/callback-stream-1.1.0.tgz"},"directories":{},"publish_time":1438707960947,"_cnpm_publish_time":1438707960947,"_hasShrinkwrap":false},"1.0.2":{"name":"callback-stream","version":"1.0.2","description":"A pipeable stream that calls your callback","main":"index.js","scripts":{"test":"./node_modules/.bin/tap test.js"},"website":"https://github.com/mcollina/callback-stream","repository":{"type":"git","url":"https://github.com/mcollina/callback-stream.git"},"bugs":{"url":"http://github.com/mcollina/callback-stream/issues"},"keywords":["callback","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","dependencies":{"readable-stream":"> 1.0.0 < 2.0.0"},"devDependencies":{"tap":"~0.4.2"},"readmeFilename":"README.md","_id":"callback-stream@1.0.2","dist":{"shasum":"a4195e76120e35bfeb491df18d00b57e5d299569","size":19929,"noattachment":false,"key":"/callback-stream/-/callback-stream-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/callback-stream/download/callback-stream-1.0.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1378892483534,"_cnpm_publish_time":1378892483534,"_hasShrinkwrap":false},"1.0.1":{"name":"callback-stream","version":"1.0.1","description":"A pipeable stream that calls your callback","main":"index.js","scripts":{"test":"./node_modules/.bin/tap test.js"},"website":"https://github.com/mcollina/callback-stream","repository":{"type":"git","url":"https://github.com/mcollina/callback-stream.git"},"bugs":{"url":"http://github.com/mcollina/callback-stream/issues"},"keywords":["callback","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","dependencies":{"readable-stream":"~1.1.8"},"devDependencies":{"tap":"~0.4.2"},"readmeFilename":"README.md","_id":"callback-stream@1.0.1","dist":{"shasum":"93c208fd55b11cd0e948e43f31469f4718b7d85c","size":19634,"noattachment":false,"key":"/callback-stream/-/callback-stream-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/callback-stream/download/callback-stream-1.0.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1378892376562,"_cnpm_publish_time":1378892376562,"_hasShrinkwrap":false},"1.0.0":{"name":"callback-stream","version":"1.0.0","description":"A pipeable stream that calls your callback","main":"index.js","scripts":{"test":"./node_modules/.bin/tap test.js"},"website":"https://github.com/mcollina/callback-stream","repository":{"type":"git","url":"https://github.com/mcollina/callback-stream.git"},"bugs":{"url":"http://github.com/mcollina/callback-stream/issues"},"keywords":["callback","stream"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","dependencies":{"readable-stream":"~1.0.2"},"devDependencies":{"tap":"~0.4.2"},"readmeFilename":"README.md","_id":"callback-stream@1.0.0","dist":{"shasum":"87f92caef903066270138edbbc3a6cbc73959fd3","size":16280,"noattachment":false,"key":"/callback-stream/-/callback-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/callback-stream/download/callback-stream-1.0.0.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1368211238546,"_cnpm_publish_time":1368211238546,"_hasShrinkwrap":false}},"readme":"CallbackStream\n=====\n\n[![Build\nStatus](https://travis-ci.org/mcollina/callback-stream.png)](https://travis-ci.org/mcollina/callback-stream)\n\nIt is a safe variant of the\n[concat-stream](https://github.com/maxogden/node-concat-stream)\npackage that _will always return an array_.\n\nIt does everything callback-stream does, minus the concatenation.\nIn fact, it just callbacks you with an array containing your\ngood stuff.\n\nIt is based on the Stream 2 API, but it also works on node v0.8.\nIt also support Stream 3, which is bundled with node v0.12 and iojs.\n\n## Installation\n\n```\nnpm install callback-stream --save\n```\n\n## Pipe usage\n\n```js\nvar callback = require('callback-stream')\nvar fs = require('fs')\nvar read = fs.createReadStream('readme.md')\nvar write = callback(function (err, data) {\n  console.log(err, data)\n})\n\nread.pipe(write)\n```\n\n## Object mode usage\n\n```\nvar callback = require('callback-stream')\nvar write = callback.obj(function (err, data) {\n  // this will print ['hello', 'world']\n  console.log(data)\n})\n\nwrite.write('hello')\nwrite.write('world')\nwrite.end()\n```\n\n## Contributing to CallbackStream\n\n* Check out the latest master to make sure the feature hasn't been\n  implemented or the bug hasn't been fixed yet\n* Check out the issue tracker to make sure someone already hasn't\n  requested it and/or contributed it\n* Fork the project\n* Start a feature/bugfix branch\n* Commit and push until you are happy with your contribution\n* Make sure to add tests for it. This is important so I don't break it\n  in a future version unintentionally.\n\n## LICENSE - \"MIT License\"\n\nCopyright (c) 2013-2015 Matteo Collina, http://matteocollina.com\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/mcollina/callback-stream#readme","bugs":{"url":"http://github.com/mcollina/callback-stream/issues"},"license":"MIT"}