nodeca / pako

high speed zlib port to javascript, works in browser & node.js
http://nodeca.github.io/pako/
MIT License
5.41k stars 784 forks source link

how to gzip multiple files? #285

Open ralyodio opened 3 months ago

ralyodio commented 3 months ago

Can I have more than one file in a gzip file?

Thecoolpeople commented 2 months ago

Hello @ralyodio

On its own, gzip lacks knowledge of file structure. To achieve your desired outcome, you must first organize the files into a container file, such as a tar structure or similar format, and then apply gzip compression to that container.