mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
208ba42c0e | 3 years ago | |
---|---|---|
.. | ||
index.js | 3 years ago | |
license | 3 years ago | |
package.json | 3 years ago | |
readme.md | 3 years ago |
readme.md
to-readable-stream
Convert a string/Buffer/Uint8Array to a readable stream
Install
$ npm install to-readable-stream
Usage
const toReadableStream = require('to-readable-stream');
toReadableStream('🦄🌈').pipe(process.stdout);
API
toReadableStream(input)
Returns a stream.Readable
.
input
Type: string
Buffer
Uint8Array
Value to convert to a stream.
Related
- into-stream - More advanced version of this module
License
MIT © Sindre Sorhus