Web Streams API have experimental support in Node, more info here: https://nodejs.org/api/webstreams.html
If supported, same code would be able to run in server (node) and browser environments without any polyfills necessary (let's hope). Then maybe we could also get rid of the multipipe dependency? (has a few transitives as well)
I could spend some time looking into this if you think it is an interesting direction. It would require a major version bump for sure.
Edit: fact checked availability of the API. They were available since v16.5, but no warning is emitted since v18.
Web Streams API have experimental support in Node, more info here: https://nodejs.org/api/webstreams.html
If supported, same code would be able to run in server (node) and browser environments without any polyfills necessary (let's hope). Then maybe we could also get rid of the
multipipedependency? (has a few transitives as well)I could spend some time looking into this if you think it is an interesting direction. It would require a major version bump for sure.
Edit: fact checked availability of the API. They were available since v16.5, but no warning is emitted since v18.