Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.97 KB

README.md

File metadata and controls

46 lines (26 loc) · 1.97 KB

A set of helper packages for web streams

Zero dependency! And package working in node.js (> 18) and browser.

web streams sepc

MDN streams doc

split-webstreams npm version

$ npm i split-webstreams

Usage

This package has one function for web streams.

  • split is same as String/split. But not support limit parameter.

More details is in split-webstreams

webstreams-converter npm version

$ npm i webstreams-converter

Usage

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