adm-zip
adm-zip copied to clipboard
bug: addLocalFolderPromise is not work
const admzip = new AdmZip();
await admzip.addLocalFolderPromise('xxxx', {
filter: (filename) => {
if (!/^(?:(?!\.map$).)*$/gi.test(filename)) {
return false
}
return true;
}
})
await admzip.writeZipPromise('xxxx/dist.zip');