adm-zip
adm-zip copied to clipboard
out of range error at 2.5MB
const zip = new AdmZip(`file.osz`) //please rename attatched .zip to .osz
const nvZip = new AdmZip()
const entries = zip.getEntries()
for(const entry of entries) {
if(entry.entryName.includes(".avi") || entry.entryName.includes(".mp4") || entry.entryName.includes(".flv")) continue;
console.log(entry.entryName) //<- watch how it get stuck at audio.mp3
nvZip.addFile(entry.entryName, entry.getData()) //<- out of range error at 2643799 bytes (2.5MB?)
}
console.log(nvZip.getEntryCount()) //<- this never runs
const buffer = await nvZip.toBufferPromise()