{"id":18821139,"url":"https://github.com/compwright/read-entire-stream","last_synced_at":"2026-05-17T11:32:19.960Z","repository":{"id":62810112,"uuid":"561844639","full_name":"compwright/read-entire-stream","owner":"compwright","description":"Reads an entire stream's contents into a buffer. Made for ES6 and Node.js 16+.","archived":false,"fork":false,"pushed_at":"2022-11-04T16:34:55.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T02:25:06.632Z","etag":null,"topics":["async","buffer","es6","nodejs","stream"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/read-entire-stream","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compwright.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"compwright"}},"created_at":"2022-11-04T16:07:59.000Z","updated_at":"2022-11-04T16:37:02.000Z","dependencies_parsed_at":"2022-11-07T03:30:30.558Z","dependency_job_id":null,"html_url":"https://github.com/compwright/read-entire-stream","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/compwright/read-entire-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fread-entire-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fread-entire-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fread-entire-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fread-entire-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compwright","download_url":"https://codeload.github.com/compwright/read-entire-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compwright%2Fread-entire-stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33136706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","buffer","es6","nodejs","stream"],"created_at":"2024-11-08T00:34:32.940Z","updated_at":"2026-05-17T11:32:19.942Z","avatar_url":"https://github.com/compwright.png","language":"JavaScript","funding_links":["https://github.com/sponsors/compwright"],"categories":[],"sub_categories":[],"readme":"# read-entire-stream\n\n[![Download Status](https://img.shields.io/npm/dm/read-entire-stream.svg?style=flat-square)](https://www.npmjs.com/package/read-entire-stream)\n[![Sponsor on GitHub](https://img.shields.io/static/v1?label=Sponsor\u0026message=❤\u0026logo=GitHub\u0026link=https://github.com/sponsors/compwright)](https://github.com/sponsors/compwright)\n\nReads an entire stream's contents into a buffer.\n\nRequires Node.js 16+\n\n## Why\n\nThere are other options. Why this one?\n\nA brief survey of NPM packages that more or less do this were:\n\n* Antiquated and unmaintained\n* Overly verbose\n* Included one or more dependencies of unknown security status\n* Do not support ES6\n\nThis package has no dependencies and was written with ES6 in mind.\n\nIn a mere 7 lines of code, it will take any Node.js [ReadableStream](https://nodejs.org/dist/latest-v18.x/docs/api/stream.html) and return a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that resolves to a Node.js [Buffer](https://nodejs.org/dist/latest-v18.x/docs/api/buffer.html).\n\n## Installation\n\nWith NPM:\n\n    $ npm install --save read-entire-stream\n\nWith Yarn:\n\n    $ yarn add read-entire-stream\n\n## Usage\n\n```javascript\nimport readEntireStream from 'read-entire-stream'\n\n// ...\n\nconst buf = await readEntireStream(stream)\n```\n\n## Demo\n\nSee [bin/echo](bin/echo)\n\n    $ echo \"Hello, world\" | bin/echo\n    Hello, world\n    \n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fread-entire-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompwright%2Fread-entire-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompwright%2Fread-entire-stream/lists"}