{"id":16485826,"url":"https://github.com/creeperyang/buffer-to-stream","last_synced_at":"2026-07-09T21:31:35.849Z","repository":{"id":57191002,"uuid":"100332308","full_name":"creeperyang/buffer-to-stream","owner":"creeperyang","description":"Convert buffer to readable stream.","archived":false,"fork":false,"pushed_at":"2017-08-15T08:50:27.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T07:41:12.044Z","etag":null,"topics":["buffer","buffer-to-stream","convert-buffer-to-stream","stream"],"latest_commit_sha":null,"homepage":null,"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/creeperyang.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}},"created_at":"2017-08-15T02:59:07.000Z","updated_at":"2024-02-25T04:15:42.000Z","dependencies_parsed_at":"2022-09-16T05:14:08.864Z","dependency_job_id":null,"html_url":"https://github.com/creeperyang/buffer-to-stream","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creeperyang%2Fbuffer-to-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creeperyang%2Fbuffer-to-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creeperyang%2Fbuffer-to-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creeperyang%2Fbuffer-to-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creeperyang","download_url":"https://codeload.github.com/creeperyang/buffer-to-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238536191,"owners_count":19488672,"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","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":["buffer","buffer-to-stream","convert-buffer-to-stream","stream"],"created_at":"2024-10-11T13:27:24.778Z","updated_at":"2025-10-27T18:31:11.959Z","avatar_url":"https://github.com/creeperyang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/creeperyang/buffer-to-stream.svg?branch=master)](https://travis-ci.org/creeperyang/buffer-to-stream)\n[![npm version](https://badge.fury.io/js/buffer-to-stream.svg)](https://badge.fury.io/js/buffer-to-stream)\n[![Dependency Status](https://david-dm.org/creeperyang/buffer-to-stream.svg)](https://david-dm.org/creeperyang/buffer-to-stream)\n\n# buffer-to-stream\n\n\u003e Convert buffer or string to readable stream.\n\n[![NPM](https://nodei.co/npm/buffer-to-stream.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/buffer-to-stream/)\n\n## Usage\n\n```js\nconst toStream = require('buffer-to-stream')\n\nconst readable = toStream(Buffer.from('hello world!', 'utf8'))\nreadable.on('readable', () =\u003e {\n  let chunk\n  while ((chunk = reader.read()) !== null) {\n    console.log('got data', chunk)\n  }\n})\nreadable.on('end', () =\u003e console.log('done'))\n```\n\n## API\n\n**`toStream(buffer[, chunkSize])`**\n\n- `buffer` is the source buffer or string, and the type is `String|Buffer`.\n- `chunkSize` specifies stream data push chunk size, and type is `Number`.\n\nAnd the return value is a readable stream.\n\n## License\n\n[MIT](/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreeperyang%2Fbuffer-to-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreeperyang%2Fbuffer-to-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreeperyang%2Fbuffer-to-stream/lists"}