title: javascript - how to generate and save empty zip with FileSaver.js
body: <p>I am trying to  to generate and save empty zip with FileSaver.js in Chrome browser.</p>
  
  <pre class="lang-js prettyprint-override"><code>saveAs(new Blob([], {type:  "application/zip"}), "empty.zip");
  </code></pre>
  
  <p>it asks me to save "empty.zip" on disk.</p>
  
  <p>file is being created fine (0 bytes)</p>
  
  <p>i can drag and drop file in Windows explorer there.</p>
  
  <p>but 7-zip does not open it </p>
  
  <p><a href="https://i.stack.imgur.com/feQL9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/feQL9.jpg" alt="enter image description here"></a></p>
  
  <p>what should i pass as Blob content argument instead of empty array [] to get proper zip ?</p>