{"id":13396652,"url":"https://github.com/sindresorhus/into-stream","last_synced_at":"2025-05-15T20:03:37.791Z","repository":{"id":32937053,"uuid":"36533044","full_name":"sindresorhus/into-stream","owner":"sindresorhus","description":"Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream","archived":false,"fork":false,"pushed_at":"2023-11-25T14:02:46.000Z","size":45,"stargazers_count":206,"open_issues_count":4,"forks_count":15,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-02T23:28:35.124Z","etag":null,"topics":["nodejs","npm-package","readable-stream","stream"],"latest_commit_sha":null,"homepage":"","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":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-05-29T22:47:55.000Z","updated_at":"2025-01-07T20:11:09.000Z","dependencies_parsed_at":"2024-03-02T03:44:14.830Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/into-stream","commit_stats":{"total_commits":45,"total_committers":10,"mean_commits":4.5,"dds":"0.24444444444444446","last_synced_commit":"a3380f39df88fef6f1215a2551c575d8c105a392"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Finto-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Finto-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Finto-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Finto-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/into-stream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253618821,"owners_count":21937054,"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-07-30T18:00:58.905Z","updated_at":"2025-05-15T20:03:36.448Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","readme":"# into-stream\n\n\u003e Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream\n\nCorrectly handles backpressure.\n\n## Install\n\n```sh\nnpm install into-stream\n```\n\n## Usage\n\n```js\nimport intoStream from 'into-stream';\n\nintoStream('unicorn').pipe(process.stdout);\n//=\u003e 'unicorn'\n```\n\n## API\n\n### intoStream(input)\n\nType: `Buffer | TypedArray | ArrayBuffer | string | Iterable\u003cBuffer | string\u003e | AsyncIterable\u003cBuffer | string\u003e | Promise`\\\nReturns: [Readable stream](https://nodejs.org/api/stream.html#class-streamreadable)\n\n### intoStream.object(input)\n\nType: `object | Iterable\u003cobject\u003e | AsyncIterable\u003cobject\u003e | Promise`\\\nReturns: [Readable object stream](https://nodejs.org/api/stream.html#object-mode)\n\n## Related\n\n- [to-readable-stream](https://github.com/sindresorhus/to-readable-stream) - Simpler version of this package\n- [get-stream](https://github.com/sindresorhus/get-stream) - The opposite of this package\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["stream","Packages","Repository","JavaScript","包","Streams","目录","Modules"],"sub_categories":["Streams","文件流","流处理","流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Finto-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Finto-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Finto-stream/lists"}