to-readable-stream

Convert a value to a ReadableStream

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
to-readable-stream
9004.0.02 years ago6 years agoMinified + gzip package size for to-readable-stream in KB

Readme

to-readable-stream
Convert a value to a ReadableStream

Not to be confused with Node.js stream.Readable, in which case, stream.Readable#from() should be used instead.

Install

npm install to-readable-stream

Usage

import toReadableStream from 'to-readable-stream';

toReadableStream('🦄🌈');
//=> ReadableStream<'🦄🌈'>

API

toReadableStream(value)

Returns a ReadableStream.

value

The value to convert to a stream.

Related