Due to my hubris I am in the process of rewriting my zip file parser from scratch. :P At least now I have experience using the particular APIs and the things I need to watch out for from using Blobs.

@mauve You know about gildas-lormeau.github.io/zip.j right? Amazing zip library which works with WHATWG streams, Blobs, etc.

@gwil @mauve

the other day i tried to use chatgpt to extract minimal code from this to allow creating a zip archive with files/folders uncompressed in a browser just for the sake of allowing download, but what i got wasnt working yet sadly and then gave up on it, but was only ~50 loc 🙂

Follow

@serapath @gwil yeah! Honestly the zip parsing isn't so bad. It's a bit strange since you *have* to scan from the back in order to search for the signature (inefficient AF IMO). But outside of that it's pretty straightforward.

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.