Skip to content

zizifn/webstreams-helper

Repository files navigation

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

About

A set of helper packages for webstreams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published