{"id":26367760,"url":"https://github.com/m-ryan/tranform-to-readstream","last_synced_at":"2025-03-16T21:18:35.691Z","repository":{"id":57378935,"uuid":"176534637","full_name":"m-Ryan/tranform-to-readstream","owner":"m-Ryan","description":"tranform-to-readstream","archived":false,"fork":false,"pushed_at":"2019-03-19T14:52:17.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T18:55:25.834Z","etag":null,"topics":["readstream","stream"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-Ryan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-19T14:51:53.000Z","updated_at":"2019-03-19T14:52:59.000Z","dependencies_parsed_at":"2022-09-02T21:21:23.449Z","dependency_job_id":null,"html_url":"https://github.com/m-Ryan/tranform-to-readstream","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Ryan%2Ftranform-to-readstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Ryan%2Ftranform-to-readstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Ryan%2Ftranform-to-readstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-Ryan%2Ftranform-to-readstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-Ryan","download_url":"https://codeload.github.com/m-Ryan/tranform-to-readstream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933428,"owners_count":20370988,"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":["readstream","stream"],"created_at":"2025-03-16T21:18:35.234Z","updated_at":"2025-03-16T21:18:35.679Z","avatar_url":"https://github.com/m-Ryan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tranform-to-readstream\r\n\r\n---\r\n\r\nInstall\r\n---\r\n\r\n```js\r\nnpm install --save tranform-to-readstream\r\n\r\n```\r\n\r\n```js\r\nyarn add  tranform-to-readstream\r\n\r\n```\r\n\r\nUsage\r\n\r\n---\r\n\r\n\r\nstring\r\n\r\n```js\r\nimport TranformToReadStream from 'tranform-to-readstream';\r\n\r\nconst readStream = new TranformToReadStream('hello word', { encoding: 'utf8'});\r\n\r\n```\r\n\r\nor buffer \r\n\r\n```js\r\n\r\nimport axios from 'axios';\r\nimport TranformToReadStream from 'tranform-to-readstream';\r\n\r\n\r\nconst res = await axios({\r\n    url: `http://assets.maocanhua.cn/FrIHg7SNAUqOU1WAlLGz6uCmHBiD`,\r\n    responseType: 'arraybuffer'\r\n})\r\nconst readStream = new TranformToReadStream(res.data);\r\n\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ryan%2Ftranform-to-readstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-ryan%2Ftranform-to-readstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ryan%2Ftranform-to-readstream/lists"}