#Can you use the CompressionStream API to make a zip archive
1 messages · Page 1 of 1 (latest)
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)
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
I've resorted to this library https://gildas-lormeau.github.io/zip.js/ and made zipping a platform feature
zip.js is a JavaScript library to zip and unzip files.
it works but it means there's a lot of effects to work with
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
i always feel a bit uncomfortable about js-only packages on hex, i think thats just a Me issue though
I think it's a bit inevitable, especially since using hex dependencies on Gleam is currently much more convenient than Git deps