{"_id":"get-stream","_rev":"285269","name":"get-stream","description":"Get a stream as a string, Buffer, ArrayBuffer or array","dist-tags":{"latest":"8.0.1"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"time":{"modified":"2023-09-20T21:39:56.000Z","created":"2015-10-14T17:28:21.024Z","8.0.1":"2023-08-17T15:33:46.835Z","8.0.0":"2023-08-16T10:51:34.109Z","7.0.1":"2023-07-01T18:59:47.418Z","7.0.0":"2023-05-26T19:22:50.154Z","6.0.1":"2021-04-15T04:56:42.936Z","6.0.0":"2020-08-10T11:16:16.361Z","5.2.0":"2020-08-09T21:06:37.591Z","5.1.0":"2019-04-05T06:56:47.933Z","5.0.0":"2019-03-11T05:00:57.346Z","4.1.0":"2018-10-02T09:11:43.738Z","4.0.0":"2018-08-10T07:59:07.810Z","3.0.0":"2016-11-23T02:49:47.220Z","2.3.1":"2016-09-14T17:13:47.014Z","2.3.0":"2016-06-07T01:31:47.069Z","2.2.1":"2016-06-06T17:54:54.123Z","2.2.0":"2016-04-30T20:50:42.753Z","2.1.0":"2016-04-28T15:33:42.239Z","2.0.0":"2016-03-03T05:25:15.334Z","1.1.0":"2015-11-20T18:41:32.705Z","1.0.0":"2015-10-14T17:28:21.024Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"versions":{"8.0.1":{"name":"get-stream","version":"8.0.1","description":"Get a stream as a string, Buffer, ArrayBuffer or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./source/index.d.ts","default":"./source/index.js"},"engines":{"node":">=16"},"scripts":{"benchmark":"node benchmarks/index.js","test":"xo && ava && tsd --typings=source/index.d.ts --files=source/index.test-d.ts"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","object","concat"],"devDependencies":{"@types/node":"^20.5.0","ava":"^5.3.1","precise-now":"^2.0.0","stream-json":"^1.8.0","tsd":"^0.28.1","xo":"^0.56.0"},"_id":"get-stream@8.0.1","gitHead":"d4c9f72fe03e2d3baca352c0e505bbea4ce873a8","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_nodeVersion":"20.5.0","_npmVersion":"9.8.1","dist":{"shasum":"def9dfd71742cd7754a7761ed43749a27d02eca2","size":6903,"noattachment":false,"key":"/get-stream/-/get-stream-8.0.1.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-8.0.1.tgz"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"directories":{},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_8.0.1_1692286426619_0.5773592338470748"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-17T15:33:46.835Z","publish_time":1692286426835,"_source_registry_name":"default","_cnpm_publish_time":1692286426835},"8.0.0":{"name":"get-stream","version":"8.0.0","description":"Get a stream as a string, Buffer, ArrayBuffer or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./source/index.d.ts","default":"./source/index.js"},"engines":{"node":">=16"},"scripts":{"benchmark":"node benchmarks/index.js","test":"xo && ava && tsd --typings=source/index.d.ts --files=source/index.test-d.ts"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","object","concat"],"devDependencies":{"@types/node":"^20.5.0","ava":"^5.3.1","precise-now":"^2.0.0","stream-json":"^1.8.0","tsd":"^0.28.1","xo":"^0.56.0"},"gitHead":"215b672b5b12b95471e380a9543c75336df029b5","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@8.0.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"6e07aa5b9b2a6e85e757c18a763e01e8a0722075","size":6658,"noattachment":false,"key":"/get-stream/-/get-stream-8.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-8.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_8.0.0_1692183093911_0.5015245611476336"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-16T10:51:34.109Z","publish_time":1692183094109,"_source_registry_name":"default","_cnpm_publish_time":1692183094109},"7.0.1":{"name":"get-stream","version":"7.0.1","description":"Get a stream as a string or buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","object","concat"],"devDependencies":{"@types/node":"^20.2.4","ava":"^5.3.0","into-stream":"^8.0.0","tsd":"^0.28.1","xo":"^0.54.2"},"types":"./index.d.ts","gitHead":"7b2d2b4c53630fa2bc94459038efaf1ad6c3fc67","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@7.0.1","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"1664dfe7d1678540ea6a4da3ae7cd59bf4e4a91e","size":3407,"noattachment":false,"key":"/get-stream/-/get-stream-7.0.1.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-7.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_7.0.1_1688237987231_0.7605889482378709"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-01T18:59:47.418Z","publish_time":1688237987418,"_source_registry_name":"default","_cnpm_publish_time":1688237987418},"7.0.0":{"name":"get-stream","version":"7.0.0","description":"Get a stream as a string or buffer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","object","concat"],"devDependencies":{"@types/node":"^20.2.4","ava":"^5.3.0","into-stream":"^8.0.0","tsd":"^0.28.1","xo":"^0.54.2"},"types":"./index.d.ts","gitHead":"0a818546d2874568ec9df3869aab2bc430eb1f1d","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@7.0.0","_nodeVersion":"16.20.0","_npmVersion":"9.2.0","dist":{"shasum":"f5695721f481f5581beb9d11cb90c41ddfceea18","size":3366,"noattachment":false,"key":"/get-stream/-/get-stream-7.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_7.0.0_1685128969952_0.5234487583591594"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-26T19:22:50.154Z","publish_time":1685128970154,"_source_registry_name":"default","_cnpm_publish_time":1685128970154},"6.0.1":{"name":"get-stream","version":"6.0.1","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","array","object"],"devDependencies":{"@types/node":"^14.0.27","ava":"^2.4.0","into-stream":"^5.0.0","tsd":"^0.13.1","xo":"^0.24.0"},"gitHead":"c17901233590aa49675a7fd0f42d70b9bed1c580","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@6.0.1","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a262d8eef67aced57c2852ad6167526a43cbf7b7","size":4273,"noattachment":false,"key":"/get-stream/-/get-stream-6.0.1.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-6.0.1.tgz"},"directories":{},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_6.0.1_1618462602795_0.21548152605594484"},"_hasShrinkwrap":false,"publish_time":1618462602936,"_cnpm_publish_time":1618462602936},"6.0.0":{"name":"get-stream","version":"6.0.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","array","object"],"devDependencies":{"@types/node":"^14.0.27","ava":"^2.4.0","into-stream":"^5.0.0","tsd":"^0.13.1","xo":"^0.24.0"},"gitHead":"4ff974f5025e928c183e9bf2f111b107e7b5bd53","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@6.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3e0012cb6827319da2706e601a1583e8629a6718","size":4331,"noattachment":false,"key":"/get-stream/-/get-stream-6.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-6.0.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_6.0.0_1597058176245_0.15129601311649044"},"_hasShrinkwrap":false,"publish_time":1597058176361,"_cnpm_publish_time":1597058176361},"5.2.0":{"name":"get-stream","version":"5.2.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","array","object"],"dependencies":{"pump":"^3.0.0"},"devDependencies":{"@types/node":"^12.0.7","ava":"^2.0.0","into-stream":"^5.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"010d8deaa2c966f2d230cac5cacee20e29d028c6","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@5.2.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4966a1795ee5ace65e706c4b7beb71257d6e22d3","size":4356,"noattachment":false,"key":"/get-stream/-/get-stream-5.2.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-5.2.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_5.2.0_1597007197450_0.5569560050452633"},"_hasShrinkwrap":false,"publish_time":1597007197591,"_cnpm_publish_time":1597007197591},"5.1.0":{"name":"get-stream","version":"5.1.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","array","object"],"dependencies":{"pump":"^3.0.0"},"devDependencies":{"@types/node":"^11.13.0","ava":"^1.4.1","into-stream":"^5.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"7ce032d306373500e1f4557b3c7a31390a005da6","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@5.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"01203cdc92597f9b909067c3e656cc1f4d3c4dc9","size":4094,"noattachment":false,"key":"/get-stream/-/get-stream-5.1.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-5.1.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_5.1.0_1554447407803_0.8709433168609912"},"_hasShrinkwrap":false,"publish_time":1554447407933,"_cnpm_publish_time":1554447407933},"5.0.0":{"name":"get-stream","version":"5.0.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","array","object"],"dependencies":{"pump":"^3.0.0"},"devDependencies":{"@types/node":"^11.10.5","ava":"^1.3.1","into-stream":"^4.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"e53a3f46bdb8917910b46f6f826f7935fdebf932","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@5.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7d1f137576da207fa83d843f44824a70ef999b5f","size":3868,"noattachment":false,"key":"/get-stream/-/get-stream-5.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-5.0.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_5.0.0_1552280457094_0.683927478244923"},"_hasShrinkwrap":false,"publish_time":1552280457346,"_cnpm_publish_time":1552280457346},"4.1.0":{"name":"get-stream","version":"4.1.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","array","object"],"dependencies":{"pump":"^3.0.0"},"devDependencies":{"ava":"*","into-stream":"^3.0.0","xo":"*"},"gitHead":"9ddd965a50132bd70ad42befbcce08a9005c78f7","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@4.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5","size":3438,"noattachment":false,"key":"/get-stream/-/get-stream-4.1.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-4.1.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_4.1.0_1538471503599_0.7289635831880876"},"_hasShrinkwrap":false,"publish_time":1538471503738,"_cnpm_publish_time":1538471503738},"4.0.0":{"name":"get-stream","version":"4.0.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js","buffer-stream.js"],"keywords":["get","stream","promise","concat","string","text","buffer","read","data","consume","readable","readablestream","array","object"],"dependencies":{"pump":"^3.0.0"},"devDependencies":{"ava":"*","into-stream":"^3.0.0","xo":"*"},"gitHead":"4d1b52a0bac62c0f53f18a7f4bf996689fdf85b6","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@4.0.0","_npmVersion":"6.3.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9e074cb898bd2b9ebabb445a1766d7f43576d977","size":3368,"noattachment":false,"key":"/get-stream/-/get-stream-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-4.0.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-stream_4.0.0_1533887947733_0.9848270807807806"},"_hasShrinkwrap":false,"publish_time":1533887947810,"_cnpm_publish_time":1533887947810},"3.0.0":{"name":"get-stream","version":"3.0.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js","buffer-stream.js"],"keywords":["get","stream","promise","concat","string","str","text","buffer","read","data","consume","readable","readablestream","array","object","obj"],"devDependencies":{"ava":"*","into-stream":"^3.0.0","xo":"*"},"xo":{"esnext":true},"gitHead":"3023bc31dec6680dda4f935a2b320b3a4f18c815","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@3.0.0","_shasum":"8e943d1358dc37555054ecbe2edb05aa174ede14","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8e943d1358dc37555054ecbe2edb05aa174ede14","size":3497,"noattachment":false,"key":"/get-stream/-/get-stream-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-3.0.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/get-stream-3.0.0.tgz_1479869385406_0.47692562686279416"},"directories":{},"publish_time":1479869387220,"_cnpm_publish_time":1479869387220,"_hasShrinkwrap":false},"2.3.1":{"name":"get-stream","version":"2.3.1","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","buffer-stream.js"],"keywords":["get","stream","promise","concat","string","str","text","buffer","read","data","readable","readablestream","array","object","obj"],"dependencies":{"object-assign":"^4.0.1","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","into-stream":"^2.0.1","xo":"*"},"gitHead":"1607196593ead1d000caae8aec37ea4bed5f0797","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@2.3.1","_shasum":"5f38f93f346009666ee0150a054167f91bdd95de","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5f38f93f346009666ee0150a054167f91bdd95de","size":3547,"noattachment":false,"key":"/get-stream/-/get-stream-2.3.1.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-2.3.1.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-stream-2.3.1.tgz_1473873226777_0.8189526884816587"},"directories":{},"publish_time":1473873227014,"_cnpm_publish_time":1473873227014,"_hasShrinkwrap":false},"2.3.0":{"name":"get-stream","version":"2.3.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","buffer-stream.js"],"keywords":["get","stream","promise","concat","string","str","text","buffer","read","data","readable","readablestream","array","object","obj"],"dependencies":{"object-assign":"^4.0.1","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","into-stream":"^2.0.1","xo":"*"},"gitHead":"80081b6fe8bcacdef062ac54e0de4a3b8ec6e61c","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@2.3.0","_shasum":"3790b4977e742dd3ad9d61e9fe711865f690c010","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"3790b4977e742dd3ad9d61e9fe711865f690c010","size":3490,"noattachment":false,"key":"/get-stream/-/get-stream-2.3.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-2.3.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-stream-2.3.0.tgz_1465263104906_0.18662143824622035"},"directories":{},"publish_time":1465263107069,"_cnpm_publish_time":1465263107069,"_hasShrinkwrap":false},"2.2.1":{"name":"get-stream","version":"2.2.1","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js","buffer-stream.js"],"keywords":["get","stream","promise","concat","string","str","text","buffer","read","data","readable","readablestream","array","object","obj"],"dependencies":{"object-assign":"^4.0.1","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","into-stream":"^2.0.1","xo":"*"},"gitHead":"4e75377d963f6ee4fb9022baf2ffe46cba350110","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@2.2.1","_shasum":"ed7e336824f09ab00e37f0296ba42274590ad1c6","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ed7e336824f09ab00e37f0296ba42274590ad1c6","size":3333,"noattachment":false,"key":"/get-stream/-/get-stream-2.2.1.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-2.2.1.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-stream-2.2.1.tgz_1465235691565_0.8080171663314104"},"directories":{},"publish_time":1465235694123,"_cnpm_publish_time":1465235694123,"_hasShrinkwrap":false},"2.2.0":{"name":"get-stream","version":"2.2.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["get","stream","concat","string","str","text","buffer","read","data","readable","readablestream","array","object","obj"],"dependencies":{"object-assign":"^4.0.1","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","into-stream":"^2.0.1","xo":"*"},"gitHead":"162fa9978a4bfaa9c04581495e0303132af95035","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@2.2.0","_shasum":"9073a42b9fbebb2411ed7f1c04b2f5c3d5be289d","_from":".","_npmVersion":"3.8.9","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9073a42b9fbebb2411ed7f1c04b2f5c3d5be289d","size":3220,"noattachment":false,"key":"/get-stream/-/get-stream-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-2.2.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-stream-2.2.0.tgz_1462049442368_0.29556937725283206"},"directories":{},"publish_time":1462049442753,"_cnpm_publish_time":1462049442753,"_hasShrinkwrap":false},"2.1.0":{"name":"get-stream","version":"2.1.0","description":"Get a stream as a string, buffer, or array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["get","stream","concat","string","str","text","buffer","read","data","readable","readablestream","array","object","obj"],"dependencies":{"pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","into-stream":"^2.0.1","xo":"*"},"gitHead":"52f695aa78add2c6e6731e5f292dc82ce2e02b8a","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream#readme","_id":"get-stream@2.1.0","_shasum":"5a39f4167aae4f30433f95cf211e315baefc62c9","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5a39f4167aae4f30433f95cf211e315baefc62c9","size":2656,"noattachment":false,"key":"/get-stream/-/get-stream-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-2.1.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/get-stream-2.1.0.tgz_1461857619841_0.05684150545857847"},"directories":{},"publish_time":1461857622239,"_cnpm_publish_time":1461857622239,"_hasShrinkwrap":false},"2.0.0":{"name":"get-stream","version":"2.0.0","description":"Get a stream as a string or buffer","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stream"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["get","stream","concat","string","str","text","buffer","process","read","data","readable"],"dependencies":{"pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","xo":"*"},"gitHead":"5477c3887b7af31f49c276e5c82b733fd1f6c5cf","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream","_id":"get-stream@2.0.0","_shasum":"c6457200c1b5d3291cf45711217d9f2f87d43af5","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c6457200c1b5d3291cf45711217d9f2f87d43af5","size":2530,"noattachment":false,"key":"/get-stream/-/get-stream-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-2.0.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/get-stream-2.0.0.tgz_1456982714460_0.6460716719739139"},"directories":{},"publish_time":1456982715334,"_cnpm_publish_time":1456982715334,"_hasShrinkwrap":false},"1.1.0":{"name":"get-stream","version":"1.1.0","description":"Get a stream as a string or buffer","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stream"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.12.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["get","stream","concat","string","str","text","buffer","process","read","data","readable"],"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"05c19972d3556efa6e44eb8182118c9410422caf","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream","_id":"get-stream@1.1.0","_shasum":"554659093606c1b5284218be65f68385c9f0c18b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"554659093606c1b5284218be65f68385c9f0c18b","size":2486,"noattachment":false,"key":"/get-stream/-/get-stream-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-1.1.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1448044892705,"_cnpm_publish_time":1448044892705,"_hasShrinkwrap":false},"1.0.0":{"name":"get-stream","version":"1.0.0","description":"Get a stream as a string or buffer","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-stream"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.12.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["get","stream","concat","string","str","text","buffer","process","read","data","readable"],"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"56bf66ad5a924be824a6603d000c68ca394f71f5","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"homepage":"https://github.com/sindresorhus/get-stream","_id":"get-stream@1.0.0","_shasum":"556ef2adce7c20faf0d60aa627ccfd9d03406d81","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"556ef2adce7c20faf0d60aa627ccfd9d03406d81","size":2160,"noattachment":false,"key":"/get-stream/-/get-stream-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/get-stream/download/get-stream-1.0.0.tgz"},"maintainers":[{"name":"ehmicky","email":""},{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1444843701024,"_cnpm_publish_time":1444843701024,"_hasShrinkwrap":false}},"readme":"# get-stream\n\n> Get a stream as a string, Buffer, ArrayBuffer or array\n\n## Features\n\n- Works in any JavaScript environment ([Node.js](#nodejs-streams), [browsers](#web-streams), etc.).\n- Supports [text streams](#getstreamstream-options), [binary streams](#getstreamasbufferstream-options) and [object streams](#getstreamasarraystream-options).\n- Supports [async iterables](#async-iterables).\n- Can set a [maximum stream size](#maxbuffer).\n- Returns [partially read data](#errors) when the stream errors.\n- [Fast](#benchmarks).\n\n## Install\n\n```sh\nnpm install get-stream\n```\n\n## Usage\n\n### Node.js streams\n\n```js\nimport fs from 'node:fs';\nimport getStream from 'get-stream';\n\nconst stream = fs.createReadStream('unicorn.txt');\n\nconsole.log(await getStream(stream));\n/*\n              ,,))))))));,\n           __)))))))))))))),\n\\|/       -\\(((((''''((((((((.\n-*-==//////((''  .     `)))))),\n/|\\      ))| o    ;-.    '(((((                                  ,(,\n         ( `|    /  )    ;))))'                               ,_))^;(~\n            |   |   |   ,))((((_     _____------~~~-.        %,;(;(>';'~\n            o_);   ;    )))(((` ~---~  `::           \\      %%~~)(v;(`('~\n                  ;    ''''````         `:       `:::|\\,__,%%    );`'; ~\n                 |   _                )     /      `:|`----'     `-'\n           ______/\\/~    |                 /        /\n         /~;;.____/;;'  /          ___--,-(   `;;;/\n        / //  _;______;'------~~~~~    /;;/\\    /\n       //  | |                        / ;   \\;;,\\\n      (<_  | ;                      /',/-----'  _>\n       \\_| ||_                     //~;~~~~~~~~~\n           `\\_|                   (,~~\n                                   \\~\\\n                                    ~~\n*/\n```\n\n### Web streams\n\n```js\nimport getStream from 'get-stream';\n\nconst {body: readableStream} = await fetch('https://example.com');\nconsole.log(await getStream(readableStream));\n```\n\n### Async iterables\n\n```js\nimport {opendir} from 'node:fs/promises';\nimport {getStreamAsArray} from 'get-stream';\n\nconst asyncIterable = await opendir(directory);\nconsole.log(await getStreamAsArray(asyncIterable));\n```\n\n## API\n\nThe following methods read the stream's contents and return it as a promise.\n\n### getStream(stream, options?)\n\n`stream`: [`stream.Readable`](https://nodejs.org/api/stream.html#class-streamreadable), [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream), or [`AsyncIterable<string | Buffer | ArrayBuffer | DataView | TypedArray>`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols)\\\n`options`: [`Options`](#options)\n\nGet the given `stream` as a string.\n\n### getStreamAsBuffer(stream, options?)\n\nGet the given `stream` as a Node.js [`Buffer`](https://nodejs.org/api/buffer.html#class-buffer).\n\n```js\nimport {getStreamAsBuffer} from 'get-stream';\n\nconst stream = fs.createReadStream('unicorn.png');\nconsole.log(await getStreamAsBuffer(stream));\n```\n\n### getStreamAsArrayBuffer(stream, options?)\n\nGet the given `stream` as an [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).\n\n```js\nimport {getStreamAsArrayBuffer} from 'get-stream';\n\nconst {body: readableStream} = await fetch('https://example.com');\nconsole.log(await getStreamAsArrayBuffer(readableStream));\n```\n\n### getStreamAsArray(stream, options?)\n\nGet the given `stream` as an array. Unlike [other methods](#api), this supports [streams of objects](https://nodejs.org/api/stream.html#object-mode).\n\n```js\nimport {getStreamAsArray} from 'get-stream';\n\nconst {body: readableStream} = await fetch('https://example.com');\nconsole.log(await getStreamAsArray(readableStream));\n```\n\n#### options\n\nType: `object`\n\n##### maxBuffer\n\nType: `number`\\\nDefault: `Infinity`\n\nMaximum length of the stream. If exceeded, the promise will be rejected with a `MaxBufferError`.\n\nDepending on the [method](#api), the length is measured with [`string.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), [`buffer.length`](https://nodejs.org/api/buffer.html#buflength), [`arrayBuffer.byteLength`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength) or [`array.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length).\n\n## Errors\n\nIf the stream errors, the returned promise will be rejected with the `error`. Any contents already read from the stream will be set to `error.bufferedData`, which is a `string`, a `Buffer`, an `ArrayBuffer` or an array depending on the [method used](#api).\n\n```js\nimport getStream from 'get-stream';\n\ntry {\n\tawait getStream(streamThatErrorsAtTheEnd('unicorn'));\n} catch (error) {\n\tconsole.log(error.bufferedData);\n\t//=> 'unicorn'\n}\n```\n\n## Tips\n\n### Alternatives\n\nIf you do not need the [`maxBuffer`](#maxbuffer) option, [`error.bufferedData`](#errors), nor browser support, you can use the following methods instead of this package.\n\n#### [`streamConsumers.text()`](https://nodejs.org/api/webstreams.html#streamconsumerstextstream)\n\n```js\nimport fs from 'node:fs';\nimport {text} from 'node:stream/consumers';\n\nconst stream = fs.createReadStream('unicorn.txt', {encoding: 'utf8'});\nconsole.log(await text(stream))\n```\n\n#### [`streamConsumers.buffer()`](https://nodejs.org/api/webstreams.html#streamconsumersbufferstream)\n\n```js\nimport {buffer} from 'node:stream/consumers';\n\nconsole.log(await buffer(stream))\n```\n\n#### [`streamConsumers.arrayBuffer()`](https://nodejs.org/api/webstreams.html#streamconsumersarraybufferstream)\n\n```js\nimport {arrayBuffer} from 'node:stream/consumers';\n\nconsole.log(await arrayBuffer(stream))\n```\n\n#### [`readable.toArray()`](https://nodejs.org/api/stream.html#readabletoarrayoptions)\n\n```js\nconsole.log(await stream.toArray())\n```\n\n#### [`Array.fromAsync()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync)\n\nIf your [environment supports it](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fromAsync#browser_compatibility):\n\n```js\nconsole.log(await Array.fromAsync(stream))\n```\n\n### Non-UTF-8 encoding\n\nWhen all of the following conditions apply:\n  - [`getStream()`](#getstreamstream-options) is used (as opposed to [`getStreamAsBuffer()`](#getstreamasbufferstream-options) or [`getStreamAsArrayBuffer()`](#getstreamasarraybufferstream-options))\n  - The stream is binary (not text)\n  - The stream's encoding is not UTF-8 (for example, it is UTF-16, hexadecimal, or Base64)\n\nThen the stream must be decoded using a transform stream like [`TextDecoderStream`](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoderStream) or [`b64`](https://github.com/hapijs/b64).\n\n```js\nimport getStream from 'get-stream';\n\nconst textDecoderStream = new TextDecoderStream('utf-16le');\nconst {body: readableStream} = await fetch('https://example.com');\nconsole.log(await getStream(readableStream.pipeThrough(textDecoderStream)));\n```\n\n### Blobs\n\n[`getStreamAsArrayBuffer()`](#getstreamasarraybufferstream-options) can be used to create [Blobs](https://developer.mozilla.org/en-US/docs/Web/API/Blob).\n\n```js\nimport {getStreamAsArrayBuffer} from 'get-stream';\n\nconst stream = fs.createReadStream('unicorn.txt');\nconsole.log(new Blob([await getStreamAsArrayBuffer(stream)]));\n```\n\n### JSON streaming\n\n[`getStreamAsArray()`](#getstreamasarraystream-options) can be combined with JSON streaming utilities to parse JSON incrementally.\n\n```js\nimport fs from 'node:fs';\nimport {compose as composeStreams} from 'node:stream';\nimport {getStreamAsArray} from 'get-stream';\nimport streamJson from 'stream-json';\nimport streamJsonArray from 'stream-json/streamers/StreamArray.js';\n\nconst stream = fs.createReadStream('big-array-of-objects.json');\nconsole.log(await getStreamAsArray(\n\tcomposeStreams(stream, streamJson.parser(), streamJsonArray.streamArray()),\n));\n```\n\n## Benchmarks\n\n### Node.js stream (100 MB, binary)\n\n- `getStream()`: 142ms\n- `text()`: 139ms\n- `getStreamAsBuffer()`: 106ms\n- `buffer()`: 83ms\n- `getStreamAsArrayBuffer()`: 105ms\n- `arrayBuffer()`: 81ms\n- `getStreamAsArray()`: 24ms\n- `stream.toArray()`: 21ms\n\n### Node.js stream (100 MB, text)\n\n- `getStream()`: 90ms\n- `text()`: 89ms\n- `getStreamAsBuffer()`: 127ms\n- `buffer()`: 192ms\n- `getStreamAsArrayBuffer()`: 129ms\n- `arrayBuffer()`: 195ms\n- `getStreamAsArray()`: 89ms\n- `stream.toArray()`: 90ms\n\n### Web ReadableStream (100 MB, binary)\n\n- `getStream()`: 223ms\n- `text()`: 221ms\n- `getStreamAsBuffer()`: 182ms\n- `buffer()`: 153ms\n- `getStreamAsArrayBuffer()`: 171ms\n- `arrayBuffer()`: 155ms\n- `getStreamAsArray()`: 83ms\n\n### Web ReadableStream (100 MB, text)\n\n- `getStream()`: 141ms\n- `text()`: 139ms\n- `getStreamAsBuffer()`: 91ms\n- `buffer()`: 80ms\n- `getStreamAsArrayBuffer()`: 89ms\n- `arrayBuffer()`: 81ms\n- `getStreamAsArray()`: 21ms\n\n[Benchmarks' source file](benchmarks/index.js).\n\n## FAQ\n\n### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)?\n\nThis module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, `Buffer`, an `ArrayBuffer` or an array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package.\n\n## Related\n\n- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer\n- [into-stream](https://github.com/sindresorhus/into-stream) - The opposite of this package\n","_attachments":{},"homepage":"https://github.com/sindresorhus/get-stream#readme","bugs":{"url":"https://github.com/sindresorhus/get-stream/issues"},"license":"MIT"}