adm-zip
adm-zip copied to clipboard
A Javascript implementation of zip for nodejs. Allows user to create or extract zip files both in memory or to/from disk
I want to update some bmp files inside the zip without unzipping and zipping again (the zip file is too large and it takes to much time). I have tried:...
From the API documentation, it seems there is a way to specify the zipPath when adding a file from the disk: `[void] addLocalFile(String localPath, String zipPath)` However, I don't see...
This code works when running it purely by node index.js, but fail when publishing to NPM as CLI and running as executable on Windows 7. var zip = new AdmZip();...
On windows, adm-zip utility is unable to unzip packages which include some files with "^M" in their file name. It shows an error as following (the file name in the...
Hi there, When I first started using the project, I simply wrote the zipEntry data to a file using FS and all was sweet however after noticing `extractEntryTo` I modified...
Here is my code: import AdmZip from "adm-zip"; let zip = new AdmZip(z_path); zip.extractAllTo(output_path, false); Google says: According to [this answer on GitHub](https://github.com/creationix/drop-dat/issues/5#issuecomment-415424854), 2GB is the limit: That is the...
Hi, I use this package in a Cypress cy.task to simply unzip. After the 0.5.10 version the following code has an issue: > Cannot read properties of undefined (reading 'split')...
```js 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") ||...
Got the following error with v0.5.15. It was working until 0.5.14 `Error: ADM-ZIP: Descriptor data is malformed at Object.DESCRIPTOR_FAULTY (/usr/src/app/node_modules/adm-zip/util/errors.js:56:16) at crc32OK (/usr/src/app/node_modules/adm-zip/zipEntry.js:62:36) at decompress (/usr/src/app/node_modules/adm-zip/zipEntry.js:121:26) at Object.getData (/usr/src/app/node_modules/adm-zip/zipEntry.js:320:24) at...
In version 0.5.15, the following function call: zip.extractAllTo(unzipFileLocation, true, true) Is supposed to keepOriginalPermission when the third argument is true. Up to version 0.5.14 this worked correctly, preserving Linux rwx...