#Can you use the CompressionStream API to make a zip archive

1 messages · Page 1 of 1 (latest)

gaunt wasp
#

Maybe @drifting fractal question. Warning, I don't understand this topic very well.

I'd like to create a zip archive, of a directory. CompressionStreams as far as I can see only compress the contents of a file.
Is zip and compressionstreams (i.e.) gzip simply different technologies

drifting fractal
#

afaik CompressionStream can do both gzip and deflate.

#

but not zip/unzip, no

#

I suppose it was designed for single web pages.

#

(if .tar.gz is an option for you... NM, still need to create the tar archive, which is the same problem)

gaunt wasp
#

Okies. so I need to google harder. too many things called zip and related to the web. so searches like "zip archive compressionstream javascript" not going where I need

gaunt wasp
#

it works but it means there's a lot of effects to work with

gaunt wasp
#

would people want a library providing bindings to zip.js. I'm not really sure if it makes sense publishing stuff on hex that are small wrappers around npm packages

raven mortar
#

i always feel a bit uncomfortable about js-only packages on hex, i think thats just a Me issue though

true lintel
#

maybe this could be solved with shellout?

#

I see now that im a bit late though

frank epoch