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
**Issue**: We say a project has duplicated dependencies if any package dependency occurs multiple times in the dependency tree. After analyzing the dependency tree, we have detected duplicate packages in...
Here is my code: ``` const zipfile = new AdmZip(); zipfile.addLocalFile('test.txt'); ... // add other local files zipfile.writeZip('test.zip'); var buf = fs.readFileSync('test.zip') zipfile.toBuffer(function(buffer){ if(buf.toString() != buffer.toString()){ console.log('Error, not the same!!!!!')...
From wiki it is said `AdmZip` constructor only accepts parameter of type string, but in source code it also accepts a `Buffer` object, is this function stable or will it...
Add a password to it during decompression, but report an error Compression mode: WinRAR compression password addition password:123456 Decompression mode: ``` zipEntry.getDataAsync(function (data, err) { if (err) { console.log(err); }...
I've created a simple test archive with this code ``` const fs = require('fs'); const path = require('path'); const Archive = require('adm-zip'); const zip = new Archive(); zip.addLocalFolder('TEST_1', 'Files/TEST_1'); zip.writeZip(/*target...
when filename or path contains chinese characters,the output zip file file name issue Code: var dic = /*my dic path*/ var zip = /*my zip path*/ var zip = new...
# Overview We try to add files and folder to an existing archive. The existing archive is around 206KB. When we add content to the existing archive, it corrupts some...
hello, i will unzip a zip file, the zip contains some tree folders and files, when i use extractAllToAsync and set overwrite=true, throw a error: "Unable to set utimes"~ 
It appears that `writeZip` operates in a sync fashion. Is this correct? If so, would be great to have a truly async version.
Problem ------------- I try to call getEntries() on an AdmZip object initialized with a Buffer object. The buffer is larger than the actual zip content so there are trailing zeros...