aozhiwei 0a973d12e3 1
2022-01-27 17:32:21 +08:00
..
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00
1
2022-01-27 17:32:21 +08:00

to-readable-stream Build Status

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.

License

MIT © Sindre Sorhus