{"_id":"read-all-stream","_rev":"40008","name":"read-all-stream","description":"Read all stream content and pass it to callback","dist-tags":{"latest":"3.1.0"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"time":{"modified":"2021-06-03T10:11:54.000Z","created":"2014-11-09T08:06:14.870Z","3.1.0":"2016-01-27T17:41:14.686Z","3.0.1":"2015-07-18T08:09:04.083Z","3.0.0":"2015-07-01T10:18:26.880Z","2.2.0":"2015-06-22T08:47:19.182Z","2.1.2":"2015-04-07T10:40:17.374Z","2.1.1":"2015-04-07T10:00:09.506Z","2.1.0":"2015-04-07T09:59:40.114Z","2.0.0":"2015-04-01T20:06:59.874Z","1.0.2":"2015-01-29T07:09:42.165Z","1.0.1":"2015-01-19T14:15:13.458Z","1.0.0":"2015-01-19T07:28:36.385Z","0.2.0":"2015-01-19T06:25:31.301Z","0.1.2":"2014-11-09T08:55:33.850Z","0.1.1":"2014-11-09T08:13:10.475Z","0.1.0":"2014-11-09T08:06:14.870Z"},"users":{"manaten":true,"ciceropablo":true,"soldair":true},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"versions":{"3.1.0":{"name":"read-all-stream","version":"3.1.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"mocha":"*"},"dependencies":{"pinkie-promise":"^2.0.0","readable-stream":"^2.0.0"},"gitHead":"636cb4f64d9bf5261c7c42d257071b528caa7888","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@3.1.0","_shasum":"35c3e177f2078ef789ee4bfafa4373074eaef4fa","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"35c3e177f2078ef789ee4bfafa4373074eaef4fa","size":2250,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-3.1.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"directories":{},"publish_time":1453916474686,"_cnpm_publish_time":1453916474686,"_hasShrinkwrap":false},"3.0.1":{"name":"read-all-stream","version":"3.0.1","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"mocha":"*"},"dependencies":{"pinkie-promise":"^1.0.0","readable-stream":"^2.0.0"},"gitHead":"65f188a592577e590e2be30ff9d7b17d3c8e444c","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@3.0.1","_shasum":"c3701aecd7c911516677590eedea49684c62fa47","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"c3701aecd7c911516677590eedea49684c62fa47","size":2282,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-3.0.1.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"directories":{},"publish_time":1437206944083,"_cnpm_publish_time":1437206944083,"_hasShrinkwrap":false},"3.0.0":{"name":"read-all-stream","version":"3.0.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"mocha":"*"},"dependencies":{"pinkie-promise":"^1.0.0","readable-stream":"^2.0.0"},"gitHead":"e08f34a6af236b1a3836a344136d078222d6edef","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@3.0.0","_shasum":"78700b48e391854d193511723043fcd2bdc970c7","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"78700b48e391854d193511723043fcd2bdc970c7","size":2250,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-3.0.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"directories":{},"publish_time":1435745906880,"_cnpm_publish_time":1435745906880,"_hasShrinkwrap":false},"2.2.0":{"name":"read-all-stream","version":"2.2.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"mocha":"*"},"dependencies":{"readable-stream":"^2.0.0"},"gitHead":"7f687315d2ff8081a87735f9c7fcc33be041142e","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@2.2.0","_shasum":"6b83370546c55ab6ade2bf75e83c66e45989bbf0","_from":".","_npmVersion":"2.11.1","_nodeVersion":"2.3.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"6b83370546c55ab6ade2bf75e83c66e45989bbf0","size":2113,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-2.2.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"directories":{},"publish_time":1434962839182,"_cnpm_publish_time":1434962839182,"_hasShrinkwrap":false},"2.1.2":{"name":"read-all-stream","version":"2.1.2","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"mocha":"*"},"dependencies":{"readable-stream":"~1.1.13"},"gitHead":"fd1ff63dc2b55a249dbfeb32fa79526abb3b83de","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@2.1.2","_shasum":"0e80070eadd99712383e9f3c26762310900bda0a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"0e80070eadd99712383e9f3c26762310900bda0a","size":1964,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-2.1.2.tgz"},"directories":{},"publish_time":1428403217374,"_cnpm_publish_time":1428403217374,"_hasShrinkwrap":false},"2.1.1":{"name":"read-all-stream","version":"2.1.1","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"fast-apply":"0.0.3","istanbul":"^0.3.2","mocha":"*"},"dependencies":{"concat-stream":"^1.4.8"},"gitHead":"508121125ca76aef3010ced9bc782dc91074e3af","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@2.1.1","_shasum":"ee79830f6bdfec3119beb74a5c3e19fc0fcd31db","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"ee79830f6bdfec3119beb74a5c3e19fc0fcd31db","size":1858,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-2.1.1.tgz"},"directories":{},"publish_time":1428400809506,"_cnpm_publish_time":1428400809506,"_hasShrinkwrap":false},"2.1.0":{"name":"read-all-stream","version":"2.1.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"fast-apply":"0.0.3","istanbul":"^0.3.2","mocha":"*"},"gitHead":"1dc304383e9d1cec3f59b36dedbed17209d02dd8","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@2.1.0","_shasum":"eddbe343ae991a3dcb9a9f78d6263574fb165a62","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"eddbe343ae991a3dcb9a9f78d6263574fb165a62","size":1864,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-2.1.0.tgz"},"directories":{},"publish_time":1428400780114,"_cnpm_publish_time":1428400780114,"_hasShrinkwrap":false},"2.0.0":{"name":"read-all-stream","version":"2.0.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"fast-apply":"0.0.3","istanbul":"^0.3.2","mocha":"*"},"gitHead":"fc040d1145c0c2ee94fb6601c2413e902978f33f","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@2.0.0","_shasum":"9660609d7d6ffedc0ee719ba4ed06d99160a23dc","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"9660609d7d6ffedc0ee719ba4ed06d99160a23dc","size":1882,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-2.0.0.tgz"},"directories":{},"publish_time":1427918819874,"_cnpm_publish_time":1427918819874,"_hasShrinkwrap":false},"1.0.2":{"name":"read-all-stream","version":"1.0.2","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"fast-apply":"0.0.3","istanbul":"^0.3.2","mocha":"*"},"gitHead":"798309ee82c195a9300186e3e9f64706f4164306","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@1.0.2","_shasum":"d378cf4ef6e236b188ea42d135e5b180a89e3e92","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"d378cf4ef6e236b188ea42d135e5b180a89e3e92","size":1899,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-1.0.2.tgz"},"directories":{},"publish_time":1422515382165,"_hasShrinkwrap":false,"_cnpm_publish_time":1422515382165},"1.0.1":{"name":"read-all-stream","version":"1.0.1","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"fast-apply":"0.0.3","istanbul":"^0.3.2","mocha":"*"},"gitHead":"6dd63297606426779e9b4f9315cc21198262952f","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@1.0.1","_shasum":"119e87d824d6f8bd15576308a843012b07a647ec","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"119e87d824d6f8bd15576308a843012b07a647ec","size":1903,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-1.0.1.tgz"},"directories":{},"publish_time":1421676913458,"_cnpm_publish_time":1421676913458,"_hasShrinkwrap":false},"1.0.0":{"name":"read-all-stream","version":"1.0.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"fast-apply":"0.0.3","istanbul":"^0.3.2","mocha":"*"},"dependencies":{"fast-apply":"0.0.3"},"gitHead":"81a616ad98805abb54ab46ea6c0ed896a929a1d3","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@1.0.0","_shasum":"74fc84d4a28630936ea5b83ccfcec8764acdc91c","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"74fc84d4a28630936ea5b83ccfcec8764acdc91c","size":1916,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-1.0.0.tgz"},"directories":{},"publish_time":1421652516385,"_cnpm_publish_time":1421652516385,"_hasShrinkwrap":false},"0.2.0":{"name":"read-all-stream","version":"0.2.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"fast-apply":"0.0.3","istanbul":"^0.3.2","mocha":"*"},"dependencies":{"fast-apply":"0.0.3"},"gitHead":"89ad1d068a0e67c1e1b424b50ee4027a480d0f6a","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@0.2.0","_shasum":"7a352240d092e71b6fce5c873dc8442a555245d2","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"7a352240d092e71b6fce5c873dc8442a555245d2","size":2019,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-0.2.0.tgz"},"directories":{},"publish_time":1421648731301,"_hasShrinkwrap":false,"_cnpm_publish_time":1421648731301},"0.1.2":{"name":"read-all-stream","version":"0.1.2","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"git://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"istanbul":"^0.3.2","mocha":"*"},"bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@0.1.2","_shasum":"2ab47d163c775f072527cec153cf2e399116f05f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"2ab47d163c775f072527cec153cf2e399116f05f","size":1964,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-0.1.2.tgz"},"directories":{},"publish_time":1415523333850,"_cnpm_publish_time":1415523333850,"_hasShrinkwrap":false},"0.1.1":{"name":"read-all-stream","version":"0.1.1","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"git://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"istanbul":"^0.3.2","mocha":"*"},"bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@0.1.1","_shasum":"e5dc47c24a5245f4738dcabf0a6aa4fd8a52cba6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"e5dc47c24a5245f4738dcabf0a6aa4fd8a52cba6","size":1974,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-0.1.1.tgz"},"directories":{},"publish_time":1415520790475,"_cnpm_publish_time":1415520790475,"_hasShrinkwrap":false},"0.1.0":{"name":"read-all-stream","version":"0.1.0","description":"Read all stream content and pass it to callback","license":"MIT","repository":{"type":"git","url":"git://github.com/floatdrop/read-all-stream"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","coverage":"istanbul cover _mocha -- -R spec"},"files":["index.js"],"keywords":["stream","read","buffer","callback"],"devDependencies":{"istanbul":"^0.3.2","mocha":"*"},"bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"homepage":"https://github.com/floatdrop/read-all-stream","_id":"read-all-stream@0.1.0","_shasum":"fb218ede18547fac97be4a02fef183dd675bd004","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"fb218ede18547fac97be4a02fef183dd675bd004","size":1963,"noattachment":false,"key":"/read-all-stream/-/read-all-stream-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/read-all-stream/download/read-all-stream-0.1.0.tgz"},"directories":{},"publish_time":1415520374870,"_cnpm_publish_time":1415520374870,"_hasShrinkwrap":false}},"readme":"# read-all-stream [![Build Status][travis-image]][travis-url]\n\n> Read stream to buffer or string\n\n## Install\n\n```\n$ npm install --save read-all-stream\n```\n\n## Usage\n\n```js\nvar read = require('read-all-stream');\nvar stream = fs.createReadStream('index.js');\n\nread(stream).then(function (data) {\n\tconsole.log(data.length);\n});\n\nread(stream, 'utf8', function (err, data) {\n\tconsole.log(data.length);\n\t//=> 42\n});\n\n```\n\n### API\n\n#### read(stream, [options], [callback])\n\nIf callback is omitted, Promise will be returned.\n\n##### stream\n\n*Required*  \nType: `Stream`\n\nEvent emitter, which `data` events will be consumed.\n\n##### options\n\nType: `object` or `string`\n\nIf type of `options` is `string`, then it will be used as encoding.\nIf type is `Object`, then next options are available:\n\n##### options.encoding\n\nType: `string`, `null`  \nDefault: `'utf8'`\n\nEncoding to be used on `toString` of the data. If null, the body is returned as a Buffer.\n\n##### callback(err, data)\n\nWill be called after stream is read.\n\n###### err\n\n`Error` object (if `error` event happens).\n\n###### data\n\nThe data in stream.\n\n## License\n\nMIT © [Vsevolod Strukchinsky](floatdrop@gmail.com)\n\n[travis-url]: https://travis-ci.org/floatdrop/read-all-stream\n[travis-image]: https://img.shields.io/travis/floatdrop/read-all-stream.svg\n","_attachments":{},"homepage":"https://github.com/floatdrop/read-all-stream","bugs":{"url":"https://github.com/floatdrop/read-all-stream/issues"},"license":"MIT"}