mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
861 B
861 B
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