{"_id":"into-stream","_rev":"238324","name":"into-stream","description":"Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream","dist-tags":{"latest":"7.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-03-24T16:45:31.000Z","created":"2015-05-29T22:54:01.783Z","7.0.0":"2021-04-16T07:01:52.610Z","6.0.0":"2020-08-13T17:39:23.206Z","5.1.1":"2019-10-04T05:31:18.615Z","5.1.0":"2019-04-05T07:08:46.350Z","5.0.0":"2019-03-11T05:18:04.183Z","4.0.0":"2018-10-12T08:51:08.826Z","3.1.0":"2016-11-29T08:09:09.622Z","3.0.0":"2016-08-27T09:48:32.230Z","2.0.1":"2016-04-28T14:14:30.759Z","2.0.0":"2015-06-27T09:40:21.637Z","1.0.0":"2015-05-29T22:54:01.783Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"versions":{"7.0.0":{"name":"into-stream","version":"7.0.0","description":"Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-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","buffer","string","object","array","iterable","async","asynciterable","promise","promises","from","into","to","transform","convert","readable","pull","gulpfriendly","value"],"dependencies":{"from2":"^2.3.0","p-is-promise":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","get-stream":"^6.0.1","p-event":"^4.2.0","p-immediate":"^4.0.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"cd31f33689afc1a33d3ea310f1b4b699d1a50670","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@7.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d1a211e146be8acfdb84dabcbf00fe8205e72936","size":2609,"noattachment":false,"key":"/into-stream/-/into-stream-7.0.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-7.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/into-stream_7.0.0_1618556512506_0.10957603901638713"},"_hasShrinkwrap":false,"publish_time":1618556512610,"_cnpm_publish_time":1618556512610,"_cnpmcore_publish_time":"2021-12-14T06:36:05.502Z"},"6.0.0":{"name":"into-stream","version":"6.0.0","description":"Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["stream","buffer","string","object","array","iterable","async","asynciterable","promise","promises","from","into","to","transform","convert","readable","pull","gulpfriendly","value"],"dependencies":{"from2":"^2.3.0","p-is-promise":"^3.0.0"},"devDependencies":{"ava":"^2.4.0","get-stream":"^6.0.0","p-event":"^4.2.0","p-immediate":"^3.1.0","tsd":"^0.13.1","xo":"^0.33.0"},"gitHead":"4e07b9f4f84e59de83f2d6b246d945b3f2362ded","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@6.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4bfc1244c0128224e18b8870e85b2de8e66c6702","size":2689,"noattachment":false,"key":"/into-stream/-/into-stream-6.0.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-6.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/into-stream_6.0.0_1597340363082_0.17123454060443444"},"_hasShrinkwrap":false,"publish_time":1597340363206,"_cnpm_publish_time":1597340363206},"5.1.1":{"name":"into-stream","version":"5.1.1","description":"Convert a string/promise/array/iterable/buffer/typedarray/arraybuffer/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["stream","buffer","string","object","array","iterable","promise","promises","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.3.0","p-is-promise":"^3.0.0"},"devDependencies":{"ava":"^2.4.0","get-stream":"^5.0.0","p-event":"^4.1.0","tsd":"^0.9.0","xo":"^0.25.3"},"gitHead":"c1210b4f1e70a61945ec0dd51bee1827064e8cbf","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@5.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f9a20a348a11f3c13face22763f2d02e127f4db8","size":2593,"noattachment":false,"key":"/into-stream/-/into-stream-5.1.1.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-5.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/into-stream_5.1.1_1570167078483_0.28056693809715005"},"_hasShrinkwrap":false,"publish_time":1570167078615,"_cnpm_publish_time":1570167078615},"5.1.0":{"name":"into-stream","version":"5.1.0","description":"Convert a string/promise/array/iterable/buffer/typedarray/arraybuffer/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["stream","buffer","string","object","array","iterable","promise","promises","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.3.0","p-is-promise":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","get-stream":"^5.0.0","p-event":"^4.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"548c2b92000043a31616ae88579454ac7f6a3846","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@5.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b05f37d8fed05c06a0b43b556d74e53e5af23878","size":2628,"noattachment":false,"key":"/into-stream/-/into-stream-5.1.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-5.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/into-stream_5.1.0_1554448126186_0.7222625748611959"},"_hasShrinkwrap":false,"publish_time":1554448126350,"_cnpm_publish_time":1554448126350},"5.0.0":{"name":"into-stream","version":"5.0.0","description":"Convert a string/promise/array/iterable/buffer/typedarray/arraybuffer/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["stream","buffer","string","object","array","iterable","promise","promises","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.1.1","p-is-promise":"^2.0.0"},"devDependencies":{"ava":"^1.3.1","get-stream":"^5.0.0","p-event":"^3.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"1049256ac408346a2df816f14da081d34d107330","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@5.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"690569d7806b29d7cbd496cb05972fbe725b42a5","size":2539,"noattachment":false,"key":"/into-stream/-/into-stream-5.0.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/into-stream_5.0.0_1552281484032_0.810992891659083"},"_hasShrinkwrap":false,"publish_time":1552281484183,"_cnpm_publish_time":1552281484183},"4.0.0":{"name":"into-stream","version":"4.0.0","description":"Convert a string/promise/array/iterable/buffer/typedarray/arraybuffer/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["stream","buffer","string","object","array","iterable","promise","promises","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.1.1","p-is-promise":"^2.0.0"},"devDependencies":{"ava":"^0.25.0","get-stream":"^4.1.0","p-event":"^2.1.0","xo":"^0.23.0"},"gitHead":"71510e98c3b4d0768376c3e214511f6291e8a6e5","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ef10ee2ffb6f78af34c93194bbdc36c35f7d8a9d","size":2176,"noattachment":false,"key":"/into-stream/-/into-stream-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/into-stream_4.0.0_1539334268605_0.23083830124649252"},"_hasShrinkwrap":false,"publish_time":1539334268826,"_cnpm_publish_time":1539334268826},"3.1.0":{"name":"into-stream","version":"3.1.0","description":"Convert a buffer/string/array/object/iterable/promise into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["stream","buffer","string","object","array","iterable","promise","promises","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.1.1","p-is-promise":"^1.1.0"},"devDependencies":{"ava":"*","get-stream":"^3.0.0","xo":"*"},"gitHead":"0d751e2b2063c1938b9dd78c3cc2c6ac55f798dc","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@3.1.0","_shasum":"96fb0a936c12babd6ff1752a17d05616abd094c6","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"96fb0a936c12babd6ff1752a17d05616abd094c6","size":2097,"noattachment":false,"key":"/into-stream/-/into-stream-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/into-stream-3.1.0.tgz_1480406947546_0.3577207559719682"},"directories":{},"publish_time":1480406949622,"_cnpm_publish_time":1480406949622,"_hasShrinkwrap":false},"3.0.0":{"name":"into-stream","version":"3.0.0","description":"Convert a buffer/string/array/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["stream","buffer","string","object","array","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.1.1"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","get-stream":"^2.1.0","xo":"*"},"gitHead":"98fe4bce3b3b0acfc5ffdc3869a537b9c0275a44","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@3.0.0","_shasum":"8b09e69f5758e41ce2d22cd4ed302eb07efb1727","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8b09e69f5758e41ce2d22cd4ed302eb07efb1727","size":1846,"noattachment":false,"key":"/into-stream/-/into-stream-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/into-stream-3.0.0.tgz_1472291311191_0.7756084855645895"},"directories":{},"publish_time":1472291312230,"_cnpm_publish_time":1472291312230,"_hasShrinkwrap":false},"2.0.1":{"name":"into-stream","version":"2.0.1","description":"Convert a buffer/string/array/object into a stream","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/into-stream.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["stream","buffer","string","object","array","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.1.1"},"devDependencies":{"ava":"*","buffer-equals":"^1.0.3","concat-stream":"^1.4.8","xo":"*"},"gitHead":"6f25f1737fc480c31cb14514f32752c4a9fd90bf","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream#readme","_id":"into-stream@2.0.1","_shasum":"db9b003694453eae091d8a5c84cc11507b781d31","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"db9b003694453eae091d8a5c84cc11507b781d31","size":1832,"noattachment":false,"key":"/into-stream/-/into-stream-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/into-stream-2.0.1.tgz_1461852868336_0.3723208885639906"},"directories":{},"publish_time":1461852870759,"_cnpm_publish_time":1461852870759,"_hasShrinkwrap":false},"2.0.0":{"name":"into-stream","version":"2.0.0","description":"Convert a buffer/string/array/object into a stream","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/into-stream"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["stream","buffer","string","object","array","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^2.0.3"},"devDependencies":{"ava":"0.0.4","buffer-equals":"^1.0.3","concat-stream":"^1.4.8"},"gitHead":"88fc805ee719de9d6913b92038b16cd1475b451d","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream","_id":"into-stream@2.0.0","_shasum":"7ce8255b0841f4ed4e07163e174efb08b592b9eb","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7ce8255b0841f4ed4e07163e174efb08b592b9eb","size":1808,"noattachment":false,"key":"/into-stream/-/into-stream-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1435398021637,"_cnpm_publish_time":1435398021637,"_hasShrinkwrap":false},"1.0.0":{"name":"into-stream","version":"1.0.0","description":"Convert a buffer/string/array/object into a stream","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/into-stream"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["stream","buffer","string","object","array","from","into","to","transform","convert","readable","pull","gulpfriendly","value","str"],"dependencies":{"from2":"^1.3.0"},"devDependencies":{"ava":"0.0.4","buffer-equals":"^1.0.3","concat-stream":"^1.4.8"},"gitHead":"9c9e22cf6f0f475a78a3310f0b247283f8a82547","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"homepage":"https://github.com/sindresorhus/into-stream","_id":"into-stream@1.0.0","_shasum":"ab27b00df1f665f8a5a46dde24e687a08778e583","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ab27b00df1f665f8a5a46dde24e687a08778e583","size":1810,"noattachment":false,"key":"/into-stream/-/into-stream-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/into-stream/download/into-stream-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432940041783,"_cnpm_publish_time":1432940041783,"_hasShrinkwrap":false}},"readme":"# into-stream\n\n> Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream\n\nCorrectly chunks up the input and handles backpressure.\n\n## Install\n\n```\n$ npm install into-stream\n```\n\n## Usage\n\n```js\nimport intoStream from 'into-stream';\n\nintoStream('unicorn').pipe(process.stdout);\n//=> 'unicorn'\n```\n\n## API\n\n### intoStream(input)\n\nType: `Buffer | TypedArray | ArrayBuffer | string | Iterable<Buffer | string> | AsyncIterable<Buffer | string> | Promise`\\\nReturns: [Readable stream](https://nodejs.org/api/stream.html#stream_class_stream_readable)\n\nAdheres to the requested chunk size, except for `array` where each element will be a chunk.\n\n### intoStream.object(input)\n\nType: `object | Iterable<object> | AsyncIterable<object> | Promise`\\\nReturns: [Readable object stream](https://nodejs.org/api/stream.html#stream_object_mode)\n\n## Related\n\n- [to-readable-stream](https://github.com/sindresorhus/to-readable-stream) - Simpler version of this module\n","_attachments":{},"homepage":"https://github.com/sindresorhus/into-stream#readme","bugs":{"url":"https://github.com/sindresorhus/into-stream/issues"},"license":"MIT"}