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

the extract method does not return an error event if the extraction fails. Abruptly crashes node. #139

Open ahmadafrasiyab opened 1 year ago

ahmadafrasiyab commented 1 year ago

async function main () { try { await extract(source, { dir: target }) console.log('Extraction complete') } catch (err) { // handle any errors } }

using this method with node 16.18.0 and a callback function does not return error or finish. This results in abruptly crashing node. Please provide good documentation and implementation of the callback function and investigate this bug. For specific cases, neither the finish nor the error event is fired within the writeStream function