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
Headers for marking sections just show as repeating hash marks and the following hyperlinks are shown in code.
The Wiki states that the `adm-zip` constructor can only take a file path as an argument: > The class constructor can have one or no arguments specified. If a argument...
Hello, could you please make getEntries (and potentially all other I/O operations) asynchronous? I've seem a lot of requests like this in the issue page. Not sure if it requires...
how to manage the error when the file is not found ? Using admzip.addLocalFile(mynonexistingfile) throws an error but how to manage it ??
When Im trying to copy of contents of a directory, its copying it twice to the root zip as well as the nested folder. Example folder structure im working with:...
From the API documentation: `If you want to create a directory the entryName must end in / and a null buffer should be provided.` When typing this `zip.addFile('myDir/', null)`, I'm...
  zip can be decompressed to get the uncompressed file name, But using getData to get the content is 0 bytes  
```js fs.js:720 return binding.writeBuffer(fd, buffer, offset, length, position, req); ^ TypeError: First argument must be file descriptor at Object.fs.write (fs.js:720:20) at /Users/andrey/Work/cdn-sync/node_modules/adm-zip/util/utils.js:153:44 at FSReqWrap.oncomplete (fs.js:149:20) ``` Works fine on 0.4.11
I am using adm-zip in Express.js middleware serving a React application (created with create-react-app). A request from a client triggers the `extractAllTo` method server-side. This action strangely causes an unwanted...
Zip comment is a string and does not contain copy function! ```javascript if (_comment) { _comment.copy(mh, Utils.Constants.ENDHDR); // add zip file comment } ``` ZipFiles.js line 297