{"_id":"to-readable-stream","_rev":"40341","name":"to-readable-stream","description":"Convert a string/Buffer/Uint8Array to a readable stream","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:12:05.000Z","created":"2018-05-01T10:16:00.606Z","3.0.0":"2021-04-22T06:20:07.747Z","2.1.0":"2019-04-05T07:03:22.152Z","2.0.0":"2019-03-11T05:08:27.162Z","1.0.0":"2018-05-01T10:16:00.606Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-readable-stream.git"},"versions":{"3.0.0":{"name":"to-readable-stream","version":"3.0.0","description":"Convert a string/Buffer/Uint8Array to a readable stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-readable-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["stream","readablestream","string","buffer","uint8array","from","into","to","transform","convert","readable","pull"],"devDependencies":{"ava":"^3.15.0","get-stream":"^6.0.1","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"b9ffe0a12a88e15474348e35814729930d2af260","bugs":{"url":"https://github.com/sindresorhus/to-readable-stream/issues"},"homepage":"https://github.com/sindresorhus/to-readable-stream#readme","_id":"to-readable-stream@3.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7c4aa6e3e2413c86c6276a57780dadfba226762f","size":1978,"noattachment":false,"key":"/to-readable-stream/-/to-readable-stream-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-readable-stream/download/to-readable-stream-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-readable-stream_3.0.0_1619072407610_0.2670060771804772"},"_hasShrinkwrap":false,"publish_time":1619072407747,"_cnpm_publish_time":1619072407747},"2.1.0":{"name":"to-readable-stream","version":"2.1.0","description":"Convert a string/Buffer/Uint8Array to a readable stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-readable-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["stream","readablestream","string","buffer","uint8array","from","into","to","transform","convert","readable","pull"],"devDependencies":{"ava":"^1.4.1","get-stream":"^5.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"89ccd4b90d53994beb53bc9f9899b6a15cb6b43f","bugs":{"url":"https://github.com/sindresorhus/to-readable-stream/issues"},"homepage":"https://github.com/sindresorhus/to-readable-stream#readme","_id":"to-readable-stream@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"82880316121bea662cdc226adb30addb50cb06e8","size":1891,"noattachment":false,"key":"/to-readable-stream/-/to-readable-stream-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-readable-stream/download/to-readable-stream-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-readable-stream_2.1.0_1554447801974_0.3863996496217337"},"_hasShrinkwrap":false,"publish_time":1554447802152,"_cnpm_publish_time":1554447802152},"2.0.0":{"name":"to-readable-stream","version":"2.0.0","description":"Convert a string/Buffer/Uint8Array to a readable stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-readable-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["stream","readablestream","string","buffer","uint8array","from","into","to","transform","convert","readable","pull"],"devDependencies":{"ava":"^1.3.1","get-stream":"^4.1.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"eea277f01eba6eff5dba922e8ea5a326154a9519","bugs":{"url":"https://github.com/sindresorhus/to-readable-stream/issues"},"homepage":"https://github.com/sindresorhus/to-readable-stream#readme","_id":"to-readable-stream@2.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"9ae214cc07615e1b2d38b144316a94fe9a1dc6c7","size":1770,"noattachment":false,"key":"/to-readable-stream/-/to-readable-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-readable-stream/download/to-readable-stream-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-readable-stream_2.0.0_1552280906895_0.6061959780403399"},"_hasShrinkwrap":false,"publish_time":1552280907162,"_cnpm_publish_time":1552280907162},"1.0.0":{"name":"to-readable-stream","version":"1.0.0","description":"Convert a string/Buffer/Uint8Array to a readable stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/to-readable-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["stream","readablestream","string","buffer","uint8array","from","into","to","transform","convert","readable","pull"],"devDependencies":{"ava":"*","get-stream":"^3.0.0","xo":"*"},"gitHead":"7c14929a752216bf91af6249c1aa99638aa1a970","bugs":{"url":"https://github.com/sindresorhus/to-readable-stream/issues"},"homepage":"https://github.com/sindresorhus/to-readable-stream#readme","_id":"to-readable-stream@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ce0aa0c2f3df6adf852efb404a783e77c0475771","size":1598,"noattachment":false,"key":"/to-readable-stream/-/to-readable-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-readable-stream/download/to-readable-stream-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-readable-stream_1.0.0_1525169760500_0.22127793788711592"},"_hasShrinkwrap":false,"publish_time":1525169760606,"_cnpm_publish_time":1525169760606}},"readme":"# to-readable-stream\n\n> Convert a string/Buffer/Uint8Array to a [readable stream](https://nodejs.org/api/stream.html#stream_readable_streams)\n\nIf you target Node.js 12 or later, you can use [`stream.Readable#from()`](https://nodejs.org/api/stream.html#stream_stream_readable_from_iterable_options) instead.\n\n## Install\n\n```\n$ npm install to-readable-stream\n```\n\n## Usage\n\n```js\nimport toReadableStream from 'to-readable-stream';\n\ntoReadableStream('????????').pipe(process.stdout);\n```\n\n## API\n\n### toReadableStream(value)\n\nReturns a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_readable_streams).\n\n#### value\n\nType: `string | Buffer | Uint8Array`\n\nValue to convert to a stream.\n\n## Related\n\n- [into-stream](https://github.com/sindresorhus/into-stream) - More advanced version of this module\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-to-readable-stream?utm_source=npm-to-readable-stream&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/to-readable-stream#readme","bugs":{"url":"https://github.com/sindresorhus/to-readable-stream/issues"},"license":"MIT"}