max-mapper / extract-zip

Zip extraction written in pure JavaScript. Extracts a zip into a directory.
BSD 2-Clause "Simplified" License
388 stars 126 forks source link

Monitor stream progress #126

Open bernardoadc opened 2 years ago

bernardoadc commented 2 years ago

How about using some package (like stream-meter), maybe emmiting events, so that one could monitor unziping process? My use case is GB zipped files that I await til finished, but I don't know how much it has processed so far.

ishanuda commented 2 years ago

Hi, It is good to have the length property as well to get the number of files in the zip file as it works on the ADM-zip library (https://github.com/cthackers/adm-zip/wiki/ADM-ZIP#getentries-array)

So that the progress calculation can also be implemented manually.

Thank you.