{"_id":"stream-to-promise","_rev":"1017836","name":"stream-to-promise","description":"Convert streams (readable or writable) to promises","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"time":{"modified":"2026-11-03T03:23:48.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":{"aredridel":true,"llambda":true,"whitelynx":true,"ngpixel":true,"nukisman":true,"neolu":true,"level9i":true,"drewigg":true},"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":{"integrity":"sha512-h+7wLeFiYegOdgTfTxjRsrT7/Op7grnKEIHWgaO1RTHwcwk7xRreMr3S8XpDfDMesSxzgM2V4CxNCFAGo6ssnA==","shasum":"8934d66dcbc9189394e8b33200da3bb9611db774","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-3.0.0.tgz","fileCount":4,"unpackedSize":4025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezCJdCRA9TVsSAnZWagAAcBMP+QDTUXo4Ozum1Z3iFoEh\nJWGY4C1PsTHFKSnUnAfPHSFiY5X9ZX0+TwATF44fh3AZ7BiYYdIKnjOvhKOg\nMAny0wokQVDBSC7ncx/WEa1yySThFJLSbxsWqwYs5E5WWeDChX+sx1xP0Gfj\nmNHNrZGL/nVMf8/TPltPncGbXLBMZ1Xs5RI6cm2ChFk4hbvUO7ZZ5BYVRBro\nEj8BYpUMxas1YM622bSiCkIxZW/EVRso1SbWd1Y8PabexkBD5L+75XOZuY01\nZ63vX5ZDuV/gdLt+5EKQpDwmq47COs7M5GTsFaT9DIhdYQGHFZAL167ERaAD\nI9Z2wvhGUladm/R4ld+yIWZHbmFn0dK8n8dKib+3/i286OxjqdADCF82Z+wb\n0Ttv5WaSNivaRLoWVUGy38nS3ynDolTj+oMWeyFIY4DxG5Dlw0o7w/IsIVi1\ng1rzpvL/V93vw6mx6mr/FhdCsCeI+EeUxyJhpUfCvJsHueu0Gn3twxDMo69a\nzXbGetkXFDAT2aOnD7YkSWUub0rl52X/Bdn9iicHRjCLoyVBOwJ6FQaLkKY0\nEs8iAbFsa0s2+y2HsyMldnUDgxRfLjw5/Ckn9wx66oGznlS92x8dNtNZs1GC\nkhCBPWvwX/pMabMn+nmP3XHD4EW2LL/ZMemaa+mbbdgGDeikcovw4ttDM49p\n1vFI\r\n=Ckbr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdbdLS2kB1SDa+GDQGejAP1mzTNwuqwpCILQ90/8svDAiEAunHTGeUOFtFmoX00YGopJQaI6mszdVZZaV4bV80pUbY="}],"size":1900,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-3.0.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_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,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-2.2.0.tgz","integrity":"sha512-HAGUASw8NT0k8JvIVutB2Y/9iBk7gpgEyAudXwNJmZERdMITGdajOa4VJfD/kNiA3TppQpTP4J+CtcHwdzKBAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS1ihjoK5jYv1f7vd1wPWP68g8q9YWIIs9s15tgW9AyAIgGyWIfqgIDPIUNomdW5YkMJPxnKg4KIhuerbZriAAe48="}],"size":1908,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.2.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.2.0.tgz_1469203814745_0.4499707007780671"},"directories":{},"publish_time":1469203814973,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1469203814973},"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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-2.1.1.tgz","integrity":"sha512-nLGABl6Ez6ZIwkwA085/2d4USgGqY7F3KmWwP2xo1O1quw1wbGy7/qGdTV7NNxroHgS5dKOG17krMA1gnL4ycw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEJ2Bz0CslXEjSJxz8uPZJYo66Sfr9NuwqpL/YNXrCQAiAW6F4fFnsBNt8oJBNERmDCEEO4jsWp/O/GiKYFIJtw3g=="}],"size":1877,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.1.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.1.1.tgz_1466541270085_0.684264492476359"},"directories":{},"publish_time":1466541272768,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1466541272768},"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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-2.1.0.tgz","integrity":"sha512-d/hSSLawtXBP0VTPNs3HH/VLMS51B3CofHzon2go9xYho9VfEWrvg0vCI8ZQh1LYZfUao8NqlSAxJNSoh7DHvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnrHtyPjewHlDgPdF800JUaFAOL3tzepaTGF5DMm62iwIgQr+m06PRHh+AHiwXaB2rE91aur+uNqlm9lt53HufxsA="}],"size":1891,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.1.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.1.0.tgz_1466223763822_0.3490296599920839"},"directories":{},"publish_time":1466223764256,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1466223764256},"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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-2.0.0.tgz","integrity":"sha512-gqrndQg+n6FtDRqkCTkrGfRpuGAccl/EGJgrE0ZkplBjnCg1i+Aat/9UcRGkYewyA6ifZMpmhj0RbynGCbHAGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHCCDKf7P2Z89DmHB/KlbpLwUaNo17oFtChaI3rLKEshAiEA0L1doBSUc88spTNYNvL3kSkll/sNSFSKMJ4pihC9hng="}],"size":1815,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-2.0.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/stream-to-promise-2.0.0.tgz_1466221997557_0.7856821420136839"},"directories":{},"publish_time":1466222000060,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1466222000060},"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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-1.1.1.tgz","integrity":"sha512-gumKCx55PzXz9UGYjWZshgzXd7L4nvw5ZNFkeUhvmmwk9OCnJNgH2DzTBCrCav+9yaHSPgTzuBwNqgVfiRC0Aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLZ2saCR9ypvHOrdNxqe+YgRHENc5FxSiaPYhYJPphsAIhALbYMtdlGtNp5pzogNdMBQI+3RMQOuDA65Q6YLWGTJX9"}],"size":1803,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.1.1.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stream-to-promise-1.1.1.tgz_1465353929680_0.7208653746638447"},"directories":{},"publish_time":1465353932303,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1465353932303},"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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-1.1.0.tgz","integrity":"sha512-vEcSXGjjJIPUr2gV+lQYb0cALd0yImEeMFDe22X0ZLsPbpEEqq7rRqIFhiiOu/rNvyX7hOz5fIx9YZ3gd1ZHZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTPYTUeXrFK0pM2zkmXJ2/bjsK/p8Er3/aZbC9F+uKLgIgek+jf5w7bWBkfzcJVMeANbPsaXAr/pNC0sSuF2krU+8="}],"size":1807,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.1.0.tgz"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"publish_time":1449421980205,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1449421980205},"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":"bvdrucker@gmail.com"}],"dist":{"shasum":"fea4eedca57eb1378dffa6935fdc617873de1e04","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-1.0.4.tgz","integrity":"sha512-vc/PlZpCg1te3IzOlIwSVADGmpPck7laDxVbiZ31WZLKU/N6tnmh4nl5zEC6hPsRBq48nGPN3ekYPrpvWnmQfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFkjc4eabifspG6iPlDhxt2TofttygaJ8Ku2IOybkEQQIgORjxK34cjpIgjp6aJE2KFifp7D2G12hh2PSK/+uzmiw="}],"size":1814,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.4.tgz"},"directories":{},"publish_time":1413198847138,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1413198847138},"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":"bvdrucker@gmail.com"}],"dist":{"shasum":"cb2b5fb2e1177f109aa96680fde0af8f0668ff44","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-1.0.3.tgz","integrity":"sha512-6Gz/7PzDIsmSfApeD4Z8Hrhq4WJiJ76URpCEBiBhV6tou+1HleyjuCR3vb9VzTaCmT3sUXiZnrupWpj//NuV7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHJlUQujSLxLSSv/pImd4BnQtbGzUxtw63yxsohBRTdAIhAK6y82s/6R28fCXaW7UkXnf4CTYe0bmrnW9t15YP78LJ"}],"size":1816,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.3.tgz"},"directories":{},"publish_time":1413198795793,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1413198795793},"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":"bvdrucker@gmail.com"}],"dist":{"shasum":"c3d02388c5616d2b5d584aaa079f8c788f0f5df4","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-1.0.2.tgz","integrity":"sha512-DI5gLuaz/p86QHBQgTX3TkUsgWFWx1GoyeopDHDwtwxufBvay384XuM8t2a/9o4r/BXSvpkqqYKO0sN8IB88Xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVwXp7rKOLd5OleF2skmf3K2KBqHkrx6968CNREs/weAIgSGdMZVipZO/lgrIYHPECpN62o4NQ5lt1/Eodn8xXNCo="}],"size":1815,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.2.tgz"},"directories":{},"publish_time":1410516742213,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1410516742213},"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":"bvdrucker@gmail.com"}],"dist":{"shasum":"e454d5ef22f057903d2dea33abd78eef8f66bbbc","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-1.0.1.tgz","integrity":"sha512-iiDo0L40DNgCdTqO4vzG1GWVFmW1KzH2vZXRLyygV+C1XYAluTU4RRAT6n1DvO9ihPWgS/PYIrjG1vWUzKXIXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv+f+uwaStJCaQKCDeADLinI3P26S7dCGbsEXfLq2UKQIgBZf+dYghuFwYkNNod7SnuCSzcLaAQsFLvGOhnwP4SX4="}],"size":1770,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.1.tgz"},"directories":{},"publish_time":1408448380834,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1408448380834},"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":"bvdrucker@gmail.com"}],"dist":{"shasum":"17bd283eaadb8ea80a68793ce53e70bbd75ee3bf","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-1.0.0.tgz","integrity":"sha512-qW1frYJhR8AhVCj1DzinAH3Mdw4FdVOEtVm3N3zaClPXO/X2LxmYfd3y+mJbVkTeuMQ0zCwfm8E5SNZxZA9AbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEnNoRQmIg/OEWMHMZpkQhE+QPH/D0t1FwrjndpZncRxAiEAuOZCPjDPzabV4eCFnNI5iY3v8pylDH+7dY1w85tXZNo="}],"size":1813,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-1.0.0.tgz"},"directories":{},"publish_time":1408444668165,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1408444668165},"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":"bvdrucker@gmail.com"}],"dist":{"shasum":"e400d3ee0011ab84901e4b9e2663c7301a2772bb","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-0.1.0.tgz","integrity":"sha512-8KC6BoNkD4BIJFqJsco/BHne94vn3AvkzUc3UJJXbJEdR/vWMwPIQ+5JDR0tLimEq/FhTGL7G4kGSnEGqiEc6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAVmaEc64s8EcIYmrqWPg//Un4ZwpGeauWU6N7uWvGudAiEA7VhoeeccCEHL1LSm8steB0f7urE6nsQeplZ22pMpd3g="}],"size":3057,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.1.0.tgz"},"directories":{},"publish_time":1401386830569,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1401386830569},"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":"bvdrucker@gmail.com"}],"dist":{"shasum":"4c2a7bde02274a8acbbd580354e7300b5355a647","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-0.0.5.tgz","integrity":"sha512-X0xnE0JyAdVXyO8yKwEDS9e+WMEgaNUNQv6dZv6AMX8eT9zmtQku0g/8p9dScv14/tJdUROaHIQIHw/0lut1UA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFM4v+jKHZtZvuS2jBQCDtzszK5qhilmQOnpOx4DObSbAiBnnx9UCgOJcKrlE/imDLn/MN68X8lBXWNs5bG2qnrilA=="}],"size":2568,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.5.tgz"},"directories":{},"publish_time":1400004092515,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_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":"bvdrucker@gmail.com"}],"dist":{"shasum":"950c9accec8888751b96a7d714c6e1f2009faf2e","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-0.0.4.tgz","integrity":"sha512-cr+HP+2XTWs1MNgDmJKCuJtuhZH48a+KkTouf6e4OSdk5jZoEQxfLDsz/BtmjTLbMrhn05cp270FEac5MsR0Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB0nbBYCgVDP4IyYWqERNNDoXi4EQg/7jMMCuZyvzWPgIhAM4QO8sAQpakJGrNWHFEYuznhAjw/udyApBpMBOnqNyL"}],"size":2462,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.4.tgz"},"directories":{},"publish_time":1399999841747,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_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":"bvdrucker@gmail.com"}],"dist":{"shasum":"1d54edbcd9a37cdb85127620950e9f28e14f3ab5","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-0.0.3.tgz","integrity":"sha512-cQLxMGDG11wXPocSo9E0gyaYXIUGhMYGZ7n1beMvaXxfB36+wA+A6CVGfAC8PwrljwpBtH7v31FTx3ZE0u0Pqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFSMAn9RlYUIQdoqRZj8Edjguk7GIPv62EVXFUMF3M4wIgPdDJdR/Z4/aP0L+K8qwWNvBusJNu68bH57BIE2xNl3I="}],"size":2390,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.3.tgz"},"directories":{},"publish_time":1399997508854,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-0.0.2.tgz","integrity":"sha512-Q36HyuFLdP6yLxIvgBcMhbWNvG6c8XOifrQkCxOF/wsC0Hk+Qmev2RnIJnkcHUgJ5LceW9QLtSyo132FprsFEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTOU6BZRlZFR5AelDNM9UAPr5zTPzs6C+3KwUQYSgeegIhAJM/nkxq1QwmWK2mJd6kkNaBqyFqgrLRuTw+iyqxLKRd"}],"size":2389,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"publish_time":1399996855763,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_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","tarball":"http://registry-npm.ywwl.com/stream-to-promise/download/stream-to-promise-0.0.1.tgz","integrity":"sha512-LlPpkInzJ8diJlt5SVmFJAOf7Mf40vRJTTZATREjN6f+X7FDDU9y3KVMNDfk7wKYdYpscTP+UFtFz4oCfK3KMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQWpr/f1jgzM14AKqy0eKxsIRzFhIB3DSI9qf81IfREQIgfOxE1E321jigzKSPx10NUGGUXlSQGEpC3NLzjMhZMBo="}],"size":2353,"noattachment":false,"key":"/stream-to-promise/-/stream-to-promise-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"bendrucker","email":"bvdrucker@gmail.com"},"maintainers":[{"name":"bendrucker","email":"bvdrucker@gmail.com"}],"directories":{},"publish_time":1395009066253,"deprecated":"Deprecated. Use node:stream/promises and node:stream/consumers instead.","_cnpm_publish_time":1395009066253}},"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"}