@cjser/to-readable-stream
v4.0.0-cjser.2
Published
Convert a value to a ReadableStream
Maintainers
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-streamUsage
import toReadableStream from 'to-readable-stream';
toReadableStream('🦄🌈');
//=> ReadableStream<'🦄🌈'>API
toReadableStream(value)
Returns a ReadableStream.
value
The value to convert to a stream.
Related
- into-stream - More advanced version of this package
- get-stream - The opposite of this package
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/to-readable-stream
