I have a need to inspect the contents of an archive and verify that it contains only certain file types.
I can supply an onEntry function in the options passed into extract to inspect the entry and check if it is allowed or not. However I do not see a way to signal back to extract-zip whether the extraction should continue or be cancelled. Ideally I want to use a library such as mmmagic to do deeper inspection where the result is returned in a callback.
It would be very useful if onEntry took a third parameter, a function, that could be called to continue/cancel the extraction.