{"id":13657125,"url":"https://github.com/sindresorhus/to-readable-stream","last_synced_at":"2025-04-04T07:08:39.417Z","repository":{"id":47604634,"uuid":"131699420","full_name":"sindresorhus/to-readable-stream","owner":"sindresorhus","description":"Convert a string/Buffer/Uint8Array to a readable stream","archived":false,"fork":false,"pushed_at":"2022-10-26T14:38:58.000Z","size":20,"stargazers_count":90,"open_issues_count":0,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T02:46:11.720Z","etag":null,"topics":["nodejs","npm-package","readable-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/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2018-05-01T10:09:15.000Z","updated_at":"2024-04-22T20:46:37.000Z","dependencies_parsed_at":"2022-09-19T20:46:51.485Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/to-readable-stream","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fto-readable-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fto-readable-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fto-readable-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fto-readable-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/to-readable-stream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135144,"owners_count":20889421,"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":["nodejs","npm-package","readable-stream","stream"],"created_at":"2024-08-02T05:00:37.322Z","updated_at":"2025-04-04T07:08:39.390Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript"],"sub_categories":[],"readme":"# to-readable-stream\n\n\u003e Convert a value to a [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)\n\nNot to be confused with [Node.js `stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable), in which case, [`stream.Readable#from()`](https://nodejs.org/api/stream.html#stream_stream_readable_from_iterable_options) should be used instead.\n\n## Install\n\n```sh\nnpm install to-readable-stream\n```\n\n## Usage\n\n```js\nimport toReadableStream from 'to-readable-stream';\n\ntoReadableStream('🦄🌈');\n//=\u003e ReadableStream\u003c'🦄🌈'\u003e\n```\n\n## API\n\n### toReadableStream(value)\n\nReturns a [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream).\n\n#### value\n\nThe value to convert to a stream.\n\n## Related\n\n- [into-stream](https://github.com/sindresorhus/into-stream) - More advanced version of this package\n- [get-stream](https://github.com/sindresorhus/get-stream) - The opposite of this package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fto-readable-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fto-readable-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fto-readable-stream/lists"}