{"_id":"stream-to-promise","_rev":"129479","name":"stream-to-promise","description":"Convert streams (readable or writable) to promises","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"bendrucker","email":""}],"time":{"modified":"2022-10-18T11:28:57.000Z","created":"2014-03-16T22:31:06.253Z","3.0.0":"2020-05-25T19:54:05.040Z","2.2.0":"2016-07-22T16:10:14.973Z","2.1.1":"2016-06-21T20:34:32.768Z","2.1.0":"2016-06-18T04:22:44.256Z","2.0.0":"2016-06-18T03:53:20.060Z","1.1.1":"2016-06-08T02:45:32.303Z","1.1.0":"2015-12-06T17:13:00.205Z","1.0.4":"2014-10-13T11:14:07.138Z","1.0.3":"2014-10-13T11:13:15.793Z","1.0.2":"2014-09-12T10:12:22.213Z","1.0.1":"2014-08-19T11:39:40.834Z","1.0.0":"2014-08-19T10:37:48.165Z","0.1.0":"2014-05-29T18:07:10.569Z","0.0.5":"2014-05-13T18:01:32.515Z","0.0.4":"2014-05-13T16:50:41.747Z","0.0.3":"2014-05-13T16:11:48.854Z","0.0.2":"2014-05-13T16:00:55.763Z","0.0.1":"2014-03-16T22:31:06.253Z"},"users":{},"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"versions":{"3.0.0":{"name":"stream-to-promise","version":"3.0.0","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"standard && tape test*.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"any-promise":"~1.3.0","end-of-stream":"~1.4.1","stream-to-array":"~2.3.0"},"devDependencies":{"chai":"^4.2.0","chai-as-promised":"^7.1.1","delayed-stream":"^1.0.0","hard-rejection":"^2.0.0","standard":"^14.0.0","tape":"^5.0.1","tape-promise":"^4.0.0","tmp-promise":"^3.0.2"},"engines":{"node":">= 10"},"gitHead":"db29cb0bef7f232e5de99198c3fdba8ce1e8ee89","_id":"stream-to-promise@3.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.5","dist":{"shasum":"8934d66dcbc9189394e8b33200da3bb9611db774","size":1900,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-3.0.0.tgz"},"maintainers":[{"name":"bendrucker","email":""}],"_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-to-promise_3.0.0_1590436444941_0.04802896894395525"},"_hasShrinkwrap":false,"publish_time":1590436445040,"_cnpm_publish_time":1590436445040},"2.2.0":{"name":"stream-to-promise","version":"2.2.0","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"standard && mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"any-promise":"~1.3.0","end-of-stream":"~1.1.0","stream-to-array":"~2.3.0"},"devDependencies":{"bluebird":"~3.4.1","chai":"^3.4.1","chai-as-promised":"^5.1.0","delayed-stream":"^1.0.0","mocha":"^2.3.4","rimraf":"^2.4.4","standard":"^7.1.2"},"files":["index.js"],"gitHead":"1b554b00fef5a00598e4bbaba6d3f7c1b5c33915","_id":"stream-to-promise@2.2.0","_shasum":"b1edb2e1c8cb11289d1b503c08d3f2aef51e650f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"5.12.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"b1edb2e1c8cb11289d1b503c08d3f2aef51e650f","size":1908,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-2.2.0.tgz"},"maintainers":[{"name":"bendrucker","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.2.0.tgz_1469203814745_0.4499707007780671"},"directories":{},"publish_time":1469203814973,"_cnpm_publish_time":1469203814973,"_hasShrinkwrap":false},"2.1.1":{"name":"stream-to-promise","version":"2.1.1","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"standard && mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"any-promise":"~1.3.0","stream-to-array":"~2.3.0"},"devDependencies":{"bluebird":"~3.4.1","chai":"^3.4.1","chai-as-promised":"^5.1.0","delayed-stream":"^1.0.0","mocha":"^2.3.4","rimraf":"^2.4.4","standard":"^5.4.1"},"files":["index.js"],"gitHead":"f2ac2be9cccfa6152e0fd588ed708de441783614","_id":"stream-to-promise@2.1.1","_shasum":"41cb72bf9d559c717b74cb850f52c043c34dd614","_from":".","_npmVersion":"3.9.5","_nodeVersion":"5.11.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"41cb72bf9d559c717b74cb850f52c043c34dd614","size":1877,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.1.1.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-2.1.1.tgz"},"maintainers":[{"name":"bendrucker","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.1.1.tgz_1466541270085_0.684264492476359"},"directories":{},"publish_time":1466541272768,"_cnpm_publish_time":1466541272768,"_hasShrinkwrap":false},"2.1.0":{"name":"stream-to-promise","version":"2.1.0","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"standard && mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"any-promise":"~1.3.0","stream-to-array":"~2.3.0"},"devDependencies":{"bluebird":"~3.4.1","chai":"^3.4.1","chai-as-promised":"^5.1.0","delayed-stream":"^1.0.0","mocha":"^2.3.4","rimraf":"^2.4.4","standard":"^5.4.1"},"files":["index.js"],"gitHead":"d74c3c021d88d8f87df0342a6d9df11eaa40da6b","_id":"stream-to-promise@2.1.0","_shasum":"4255f3d59f851aae89327ddba903b79abbf298a8","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"4255f3d59f851aae89327ddba903b79abbf298a8","size":1891,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-2.1.0.tgz"},"maintainers":[{"name":"bendrucker","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.1.0.tgz_1466223763822_0.3490296599920839"},"directories":{},"publish_time":1466223764256,"_cnpm_publish_time":1466223764256,"_hasShrinkwrap":false},"2.0.0":{"name":"stream-to-promise","version":"2.0.0","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"standard && mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"any-promise":"~1.3.0","stream-to-array":"~2.3.0"},"devDependencies":{"bluebird":"~3.4.1","chai":"^3.4.1","chai-as-promised":"^5.1.0","delayed-stream":"^1.0.0","mocha":"^2.3.4","rimraf":"^2.4.4","standard":"^5.4.1"},"files":["index.js"],"gitHead":"93a305e074c9a2e3dfaceb7270a691a4895793a4","_id":"stream-to-promise@2.0.0","_shasum":"22cbb619418502bdab443e4e73bcc1f28f9158e6","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"22cbb619418502bdab443e4e73bcc1f28f9158e6","size":1815,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-2.0.0.tgz"},"maintainers":[{"name":"bendrucker","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.0.0.tgz_1466221997557_0.7856821420136839"},"directories":{},"publish_time":1466222000060,"_cnpm_publish_time":1466222000060,"_hasShrinkwrap":false},"1.1.1":{"name":"stream-to-promise","version":"1.1.1","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"standard && mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"~3.0.6","stream-to-array":"~2.3.0"},"devDependencies":{"chai":"^3.4.1","chai-as-promised":"^5.1.0","delayed-stream":"^1.0.0","mocha":"^2.3.4","rimraf":"^2.4.4","standard":"^5.4.1"},"files":["index.js"],"gitHead":"539aff72e1af7664608543a6f6465cecbfe42fe9","_id":"stream-to-promise@1.1.1","_shasum":"838f5df7c92b8c9ba8fb95d7aa3ac312eec7527f","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"838f5df7c92b8c9ba8fb95d7aa3ac312eec7527f","size":1803,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-1.1.1.tgz"},"maintainers":[{"name":"bendrucker","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-to-promise-1.1.1.tgz_1465353929680_0.7208653746638447"},"directories":{},"publish_time":1465353932303,"_cnpm_publish_time":1465353932303,"_hasShrinkwrap":false},"1.1.0":{"name":"stream-to-promise","version":"1.1.0","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"standard && mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"~3.0.6","stream-to-array":"~2.2.0"},"devDependencies":{"chai":"^3.4.1","chai-as-promised":"^5.1.0","delayed-stream":"^1.0.0","mocha":"^2.3.4","rimraf":"^2.4.4","standard":"^5.4.1"},"files":["index.js"],"gitHead":"a6368ff422f706b0f80cfd17be20ba7b9ebe7b09","_id":"stream-to-promise@1.1.0","_shasum":"0079602c7c3ca0156bda8cbf09a7b85379cfcd44","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"dist":{"shasum":"0079602c7c3ca0156bda8cbf09a7b85379cfcd44","size":1807,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-1.1.0.tgz"},"maintainers":[{"name":"bendrucker","email":""}],"directories":{},"publish_time":1449421980205,"_cnpm_publish_time":1449421980205,"_hasShrinkwrap":false},"1.0.4":{"name":"stream-to-promise","version":"1.0.4","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"stream-to-array":"2","bluebird":"2"},"devDependencies":{"chai":"1","chai-as-promised":"4","delayed-stream":"0.0.5","mocha":"1","rimraf":"2"},"gitHead":"3f75b622a4a47f771212f663c631a463f536e538","_id":"stream-to-promise@1.0.4","_shasum":"fea4eedca57eb1378dffa6935fdc617873de1e04","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"fea4eedca57eb1378dffa6935fdc617873de1e04","size":1814,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.4.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-1.0.4.tgz"},"directories":{},"publish_time":1413198847138,"_cnpm_publish_time":1413198847138,"_hasShrinkwrap":false},"1.0.3":{"name":"stream-to-promise","version":"1.0.3","description":"Convert streams (readable or writable) to promises","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"stream-to-array":"2","bluebird":"2"},"devDependencies":{"chai":"1","chai-as-promised":"4","delayed-stream":"0.0.5","mocha":"1","rimraf":"2"},"gitHead":"af86069b9a0f2534273b9ce622aaa17042409121","_id":"stream-to-promise@1.0.3","_shasum":"cb2b5fb2e1177f109aa96680fde0af8f0668ff44","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"cb2b5fb2e1177f109aa96680fde0af8f0668ff44","size":1816,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-1.0.3.tgz"},"directories":{},"publish_time":1413198795793,"_cnpm_publish_time":1413198795793,"_hasShrinkwrap":false},"1.0.2":{"name":"stream-to-promise","version":"1.0.2","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"stream-to-array":"2","bluebird":"2"},"devDependencies":{"chai":"1","chai-as-promised":"4","delayed-stream":"0.0.5","mocha":"1","rimraf":"2"},"_id":"stream-to-promise@1.0.2","_shasum":"c3d02388c5616d2b5d584aaa079f8c788f0f5df4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"c3d02388c5616d2b5d584aaa079f8c788f0f5df4","size":1815,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-1.0.2.tgz"},"directories":{},"publish_time":1410516742213,"_cnpm_publish_time":1410516742213,"_hasShrinkwrap":false},"1.0.1":{"name":"stream-to-promise","version":"1.0.1","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"stream-to-array":"2","bluebird":"2"},"devDependencies":{"chai":"1","chai-as-promised":"4","delayed-stream":"0.0.5","mocha":"1","rimraf":"2"},"gitHead":"17a7f25fb69eb7157a2362b032d82f853e7401de","_id":"stream-to-promise@1.0.1","_shasum":"e454d5ef22f057903d2dea33abd78eef8f66bbbc","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"e454d5ef22f057903d2dea33abd78eef8f66bbbc","size":1770,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-1.0.1.tgz"},"directories":{},"publish_time":1408448380834,"_cnpm_publish_time":1408448380834,"_hasShrinkwrap":false},"1.0.0":{"name":"stream-to-promise","version":"1.0.0","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"^2.3.0","stream-to-array":"~1.0.0"},"devDependencies":{"chai-as-promised":"~4.1.1","chai":"~1.9.0","mocha":"~1.18.2","delayed-stream":"0.0.5"},"gitHead":"364766f1fef3658b2e2664d7d940a91f53e0deb0","_id":"stream-to-promise@1.0.0","_shasum":"17bd283eaadb8ea80a68793ce53e70bbd75ee3bf","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"17bd283eaadb8ea80a68793ce53e70bbd75ee3bf","size":1813,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-1.0.0.tgz"},"directories":{},"publish_time":1408444668165,"_cnpm_publish_time":1408444668165,"_hasShrinkwrap":false},"0.1.0":{"name":"stream-to-promise","version":"0.1.0","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"~1.x","stream-to-array":"~1.0.0"},"devDependencies":{"chai-as-promised":"~4.1.1","chai":"~1.9.0","mocha":"~1.18.2","delayed-stream":"0.0.5"},"_id":"stream-to-promise@0.1.0","_shasum":"e400d3ee0011ab84901e4b9e2663c7301a2772bb","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"e400d3ee0011ab84901e4b9e2663c7301a2772bb","size":3057,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-0.1.0.tgz"},"directories":{},"publish_time":1401386830569,"_cnpm_publish_time":1401386830569,"_hasShrinkwrap":false},"0.0.5":{"name":"stream-to-promise","version":"0.0.5","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"~1.x","stream-to-array":"~1.0.0"},"devDependencies":{"chai-as-promised":"~4.1.1","chai":"~1.9.0","mocha":"~1.18.2","delayed-stream":"0.0.5"},"_id":"stream-to-promise@0.0.5","_shasum":"4c2a7bde02274a8acbbd580354e7300b5355a647","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"4c2a7bde02274a8acbbd580354e7300b5355a647","size":2568,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.5.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-0.0.5.tgz"},"directories":{},"publish_time":1400004092515,"_hasShrinkwrap":false,"_cnpm_publish_time":1400004092515},"0.0.4":{"name":"stream-to-promise","version":"0.0.4","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"~1.x","stream-to-array":"~1.0.0"},"devDependencies":{"chai-as-promised":"~4.1.1","chai":"~1.9.0","mocha":"~1.18.2"},"_id":"stream-to-promise@0.0.4","_shasum":"950c9accec8888751b96a7d714c6e1f2009faf2e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"950c9accec8888751b96a7d714c6e1f2009faf2e","size":2462,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.4.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-0.0.4.tgz"},"directories":{},"publish_time":1399999841747,"_hasShrinkwrap":false,"_cnpm_publish_time":1399999841747},"0.0.3":{"name":"stream-to-promise","version":"0.0.3","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"~1.x","stream-to-array":"~1.0.0"},"devDependencies":{"chai-as-promised":"~4.1.1","chai":"~1.9.0","mocha":"~1.18.2"},"_id":"stream-to-promise@0.0.3","_shasum":"1d54edbcd9a37cdb85127620950e9f28e14f3ab5","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"dist":{"shasum":"1d54edbcd9a37cdb85127620950e9f28e14f3ab5","size":2390,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.3.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-0.0.3.tgz"},"directories":{},"publish_time":1399997508854,"_hasShrinkwrap":false,"_cnpm_publish_time":1399997508854},"0.0.2":{"name":"stream-to-promise","version":"0.0.2","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/bendrucker/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"homepage":"https://github.com/bendrucker/stream-to-promise","dependencies":{"bluebird":"~1.1.0","stream-to-array":"~1.0.0"},"devDependencies":{"chai-as-promised":"~4.1.1","chai":"~1.9.0","mocha":"~1.18.2"},"_id":"stream-to-promise@0.0.2","dist":{"shasum":"9cc5fa08463b5666fb1e82816e29a93713316177","size":2389,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.2.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"directories":{},"publish_time":1399996855763,"_hasShrinkwrap":false,"_cnpm_publish_time":1399996855763},"0.0.1":{"name":"stream-to-promise","version":"0.0.1","description":"Convert readable streams to promises","main":"index.js","scripts":{"test":"mocha test.js"},"repository":{"type":"git","url":"git://github.com/valet-io/stream-to-promise.git"},"keywords":["stream","promise"],"author":{"name":"Ben Drucker","email":"bvdrucker@gmail.com","url":"http://www.bendrucker.me"},"license":"MIT","bugs":{"url":"https://github.com/valet-io/stream-to-promise/issues"},"homepage":"https://github.com/valet-io/stream-to-promise","dependencies":{"bluebird":"~1.1.0","stream-to-array":"~1.0.0"},"devDependencies":{"chai-as-promised":"~4.1.1","chai":"~1.9.0","mocha":"~1.18.0","mocha-as-promised":"~2.0.0"},"_id":"stream-to-promise@0.0.1","dist":{"shasum":"3e6de76b9f3561208e3fb7d5d51961e41f6067c1","size":2353,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/stream-to-promise/download/stream-to-promise-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":""}],"directories":{},"publish_time":1395009066253,"_cnpm_publish_time":1395009066253,"_hasShrinkwrap":false}},"readme":"# stream-to-promise [![Build Status](https://travis-ci.com/bendrucker/stream-to-promise.svg?branch=master)](https://travis-ci.com/bendrucker/stream-to-promise)\n\n> Convert streams (readable or writable) to promises\n\n## Installing\n\n```sh\nnpm install --save stream-to-promise\n```\n\n## Examples\n\n### Readable Streams\n\n```js\nstreamToPromise(readableStream).then(function (buffer) {\n  // buffer.length === 3\n})\nreadableStream.emit('data', new Buffer())\nreadableStream.emit('data', new Buffer())\nreadableStream.emit('data', new Buffer())\nreadableStream.emit('end') // promise is resolved here\n```\n\n### Writable Streams\n\n```js\nstreamToPromise(writableStream).then(function () {\n  // resolves undefined\n})\nwritableStream.write('data')\nwritableStream.end() // promise is resolved here\n```\n\n### Error Handling\n\n```js\nconst err = new Error()\nstreamToPromise(stream).catch(function (error) {\n  // error === err\n})\nstream.emit('error', err) // promise is rejected here\n```\n","_attachments":{},"homepage":"https://github.com/bendrucker/stream-to-promise","bugs":{"url":"https://github.com/bendrucker/stream-to-promise/issues"},"license":"MIT"}