Questions tagged [adm-zip]

A Javascript implementation of zip for Node.js. Allows user to create or extract zip files both in memory or to/from disk.

A Javascript implementation of zip for Node.js. Allows user to create or extract zip files both in memory or to/from disk. More info can be found in the project repository.

Installation

With npm do:

$ npm install adm-zip

What is it good for?

The library allows you to:

  • decompress zip files directly to disk or in memory buffers
  • compress files and store them to disk in .zip format or in compressed buffers
  • update content of/add new/delete files from an existing .zip

Dependencies

There are no other nodeJS libraries that ADM-ZIP is dependent of

Check out the adm-zip wiki for more info.

53 questions
0
votes
1 answer

Parse bytes of a zip file?

I am requesting a zip file from an API and I'm trying to retrieve it by bytes range (setting a Range header) and then parsing each of the parts individually. After reading some about gzip and zip compression, I'm having a hard time figuring out:…
Alon Weissfeld
  • 1,295
  • 6
  • 21
  • 35
0
votes
1 answer

How to include output from ExpressJS res.render in a ZIP file?

I have a built a method in ExpressJS that exports a document as an HTML page: html: function (req, res) { Project.findOne( { req.params.project }, function (err, project) { res.contentType('text/html'); …
Tom Söderlund
  • 4,743
  • 4
  • 45
  • 67
0
votes
1 answer

Node JS: Unzip File with ADM

im trying to unzip a File with NodeJS and Express. I tried ADM-Zip. I typed: npm install adm-zip and got: npm WARN package.json express-namespace@0.1.1 No repository field. Everything else went fine. My Code is: var AdmZip =…
DaTebe
  • 702
  • 1
  • 9
  • 30
0
votes
1 answer

Save zip file represented as a string

im downloading a zip file from the internet. I recieve it using a XHR request (using node-webkit) and this means that the content of the zip comes as a string in xhr.responseText. I now want to save this file to the disk, however, i cant seem to get…
richie
  • 2,448
  • 3
  • 19
  • 21
0
votes
1 answer

unable the zip folder with adm-zip NodeJs

I use the adm-zip(Module NodeJs ) to zip Floder, with Method addLocalFolder().The operation end successfully, but when i try to unzip folder i get the Error 2 ' file or directory not exist!'as additional info i have the right size of zip when zip…
Khalid Ahmada
  • 175
  • 3
  • 10
0
votes
0 answers

Retrieve, modify then serve a remote zip archive in Express Node.js

As you can guess from the title, I am trying to write a small thing just for the sake of learning. Here's my code in a Pastebin As you can see, I am trying to grab a zipped repo from github, according to the express request's parameters, then serve…
noahtkeller
  • 165
  • 2
  • 8
-1
votes
1 answer

Download files from server

All files downloaded are corrupted. I saw in some tutorials saying that this is caused by the passing from backend to frontend, the data will be transformed. But I don't know how to pass the file from backend to frontend. Appreciate any help given.…
hweiu321
  • 103
  • 4
  • 14
-1
votes
1 answer

Archive multiple files with Node and download it immediately

I'm trying to zip multiple files on a server and download it when user requests it. I am using adm-zip to zip files. Files add perfectly fine and are zipped. zip.writeZip('') zipes files perfectly and saves them to local server. I am just unable to…
1 2 3
4