{"id":20929169,"url":"https://github.com/jferrl/stream-to-buffer","last_synced_at":"2025-08-17T10:09:51.901Z","repository":{"id":33495076,"uuid":"158890119","full_name":"jferrl/stream-to-buffer","owner":"jferrl","description":"A promise based npm package that converts a node.js ReadStream to buffer","archived":false,"fork":false,"pushed_at":"2024-06-18T01:18:02.000Z","size":6683,"stargazers_count":11,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T03:39:12.915Z","etag":null,"topics":["js","nodejs","streaming","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jferrl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-24T00:44:57.000Z","updated_at":"2024-10-19T18:00:07.000Z","dependencies_parsed_at":"2024-06-18T18:31:08.513Z","dependency_job_id":null,"html_url":"https://github.com/jferrl/stream-to-buffer","commit_stats":{"total_commits":57,"total_committers":3,"mean_commits":19.0,"dds":"0.38596491228070173","last_synced_commit":"bf1cfb2cb3988dea404cc77d7ecc7ffae6b37a4f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jferrl/stream-to-buffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrl%2Fstream-to-buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrl%2Fstream-to-buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrl%2Fstream-to-buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrl%2Fstream-to-buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jferrl","download_url":"https://codeload.github.com/jferrl/stream-to-buffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jferrl%2Fstream-to-buffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270832927,"owners_count":24653645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["js","nodejs","streaming","typescript"],"created_at":"2024-11-18T21:17:48.778Z","updated_at":"2025-08-17T10:09:51.874Z","avatar_url":"https://github.com/jferrl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stream To Buffer\n\n[![Build Status](https://travis-ci.org/jferrl/stream-to-buffer.svg?branch=master)](https://travis-ci.org/jferrl/stream-to-buffer)\n[![Maintainability](https://api.codeclimate.com/v1/badges/71b14075a12d34b2efbc/maintainability)](https://codeclimate.com/github/jferrl/stream-to-buffer/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/71b14075a12d34b2efbc/test_coverage)](https://codeclimate.com/github/jferrl/stream-to-buffer/test_coverage)\n![npm](https://img.shields.io/npm/dw/@jorgeferrero/stream-to-buffer)\n![npm (scoped)](https://img.shields.io/npm/v/@jorgeferrero/stream-to-buffer)\n\nA promise based Node.js package that converts a Node.js Readable to buffer\n\n## Installation\n\n```sh\nnpm i @jorgeferrero/stream-to-buffer\n```\n\n## Usage\n\n```typescript\nimport { streamToBuffer } from '@jorgeferrero/stream-to-buffer';\nimport * as fs from 'fs';\n\nconst data = await streamToBuffer(fs.createReadStream('./file'));\nconsole.log(data.toString());\n```\n\n```sh\nOutput should be the the content of the file\n```\n\n## Test\n\n```sh\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjferrl%2Fstream-to-buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjferrl%2Fstream-to-buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjferrl%2Fstream-to-buffer/lists"}