chrisdrakeford 9c87c1307d first commit | 3 gadi atpakaļ | |
---|---|---|
.. | ||
index.js | 3 gadi atpakaļ | |
license | 3 gadi atpakaļ | |
package.json | 3 gadi atpakaļ | |
readme.md | 3 gadi atpakaļ |
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