adm-zip
adm-zip copied to clipboard
support await / promise when call extractAllTo mehtod
I need to ensure that the extractAllTo method is completed before continuing to perform other program. Example:
const appPathTemp = join(moduleUpdatePath, DIST_MAP[moduleCode])
const zip = new AdmZip(filePath)
await zip.extractAllTo(appPathTemp)
But I find extractAllTo method not support. So how can i do? Thanks.