$ cnpm install to-readable-stream
Convert a string/Buffer/Uint8Array to a readable stream
If you target Node.js 12 or later, you can use stream.Readable#from() instead.
$ npm install to-readable-stream
import toReadableStream from 'to-readable-stream';
toReadableStream('????????').pipe(process.stdout);
Returns a stream.Readable.
Type: string | Buffer | Uint8Array
Value to convert to a stream.
Copyright 2013 - present © cnpmjs.org | Home |