archiverjs / node-archiver

a streaming interface for archive generation
https://www.archiverjs.com
MIT License
2.77k stars 218 forks source link

Support Web Streams #630

Open seanaye opened 1 year ago

seanaye commented 1 year ago

It would be great to have support for the standardized Web Streams API. This would allow support in Browser, Deno, and with node:streams/web module

danielgak commented 8 months ago

Is there any update with this? Since AWS sdk also is moving to WebStreams I think to keep driving adoption of this package, it could be done.

As an alternative, you can transform a WebStrem into a Readeable/Writeable according to the docs using Readeable.fromWeb() and Writeable.fromWeb() that can be used as usual.

AlwaysNoobCoder commented 3 months ago

@danielgak fromWeb() means still in nodejs evnironment? the thing here is to support browser environment ?

danielgak commented 2 months ago

@danielgak fromWeb() means still in nodejs evnironment? the thing here is to support browser environment ?

I encountered this in a server side node application as you mentioned, and the solution that I shared worked for me. I do not know about he client side 🙏