Zip file by nodejs example (Expressjs framework)

Intro:

  • Use JSZip (https://www.npmjs.com/package/jszip) to zip file and send to client.
  • Avoid break font problem (filename, foldername) when unzip file (use soft Lhaplus on windown)

Run project:

  • run npm i
  • run node index

View demo:

Go to localhost:3000 and click JSZip link to download zip file.