Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
npm install into-stream> Convert a string/promise/array/iterable/asynciterable/uint8array/typedarray/arraybuffer/readablestream/object into a stream
Correctly handles backpressure.
``sh`
npm install into-stream
`js
import intoStream from 'into-stream';
intoStream('unicorn').pipe(process.stdout);
//=> 'unicorn'
`
Type: Uint8Array | TypedArray | ArrayBuffer | string | Iterable\
Returns: Readable stream
Type: object | Iterable
The streams returned by this package cannot be used with the stdio option of Node.js child_process methods. Use fs.createReadStream()` instead.
- to-readable-stream - Simpler version of this package
- get-stream - The opposite of this package