Zero dependency! And package working in node.js (> 18) and browser.
$ npm i split-webstreams
This package has one function for web streams.
split
is same as String/split. But not supportlimit
parameter.
More details is in split-webstreams
$ npm i webstreams-converter
This package has two functions for web streams.
-
webStreamsFrom(iterable)
is stream.Readable.from implementation for web streams. -
webStreams2AsyncIterator(readableStream)
is Async Iteration implementation for web streams in browser.web streams
spec has this, but no browserimplementation this yet.
More details is in webstreams-converter