Backend/node_modules/to-readable-stream
2021-12-31 15:03:23 +05:30
..
index.js 20211231 commit 2021-12-31 15:03:23 +05:30
license 20211231 commit 2021-12-31 15:03:23 +05:30
package.json 20211231 commit 2021-12-31 15:03:23 +05:30
readme.md 20211231 commit 2021-12-31 15:03:23 +05:30

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