Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had problems when writing zip files with Node.js not long ago. I ended up doing something similar to what is described in <a href="https://stackoverflow.com/questions/5754153/zip-archives-in-node-js">Zip archives in node.js</a></p> <p>I can't help you directly with your problem, but at least I hope I can point out some things:</p> <ul> <li>Don't try to use node-archive. Even if the description says it allows to create zip files, the moment I read the source code (since documentation is unexistant) I realized that's just a lie. It only exposes methods for reading.</li> <li>Using zip by spawning a process, like recommended on the provided link, seems to be the best way. Something that would work is copying the files to a local folder with whatever name you desire and then calling the zip command, just to delete the files afterwards.</li> <li>The other option, which seems ok, is to use zipper (<a href="https://github.com/rubenv/zipper" rel="nofollow noreferrer">https://github.com/rubenv/zipper</a>, although better just use npm). The reason I'm not really wishing to use it is because there's not that much flexibility, it seems to have been done in a day and it hasn't been modified since the first commit, so I'm not sure it will receive maintenance (sure, you could just fork it...).</li> </ul> <p>I swear the day I have an entire free weekend with no work I will write a freaking module that does this as complete as possible. It's silly that there isn't and it shouldn't be that much struggle. blablablarant.</p> <p><strong>Edit:</strong> Not sure if it was there before, but now I've been using the node-compress module (also using gzippo). It works fine.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload