title: How to zip a folder in node js application & after zip downloading start?
body: <p>I tried with npm package <code>adm-zip 0.4.4</code> because the latest one <code>0.4.7</code> doesn't work, <code>adm-zip  0.4.4</code> works on Windows but not on Mac &amp; Linux. Another problem is that I only want <code>zip_folder</code> to be zipped but it zipps the whole directory structure staring from <code>folder_1</code>. This is the code:</p>
  
  <pre><code>var zip = new admZip();
  
  zip.addLocalFolder("./folder_1/folder_2/folder_3/**zip_folder**");
  
  zip.writeZip("./folder_1/folder_2/folder_3/download_folder/zip_folder.zip");
  </code></pre>
  
  <p>All this happens on the server side. I have searched a lot and tried many npm packages to zip a folder or directory. Any suggestions or any other good approach to solve my problem?</p>