Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
index.js | 2 years ago | |
license | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
Convert a string/Buffer/Uint8Array to a readable stream
$ npm install to-readable-stream
const toReadableStream = require('to-readable-stream');
toReadableStream('🦄🌈').pipe(process.stdout);
Returns a stream.Readable
.
Type: string
Buffer
Uint8Array
Value to convert to a stream.
MIT © Sindre Sorhus