nika-begiashvili / libarchivejs

Archive library for browsers
MIT License
284 stars 35 forks source link

Decompress single compressed .gz file #49

Open idolpx opened 2 years ago

idolpx commented 2 years ago

Can someone give me an example of how to decompress a file using libarchive? It is just a .gz file but it's not a tar archive. I'm assuming libarchive can do that as well.

I get an "Unrecognized archive format" error when I try to call getFilesArray after opening.

nika-begiashvili commented 6 months ago

can I ask whats specific use case for this since browsers already handle gzip content ?

nika-begiashvili commented 5 months ago

25

idolpx commented 1 month ago

Sorry I did not see this sooner. I'm using libarchivejs in a browser app that lets you explore the contents of media files.

https://meatloaf.cc/tools/mme/

Sometimes those files are just compressed but not in an archive.