DEV Community

Akhil Kala
Akhil Kala

Posted on

How do I zip files in node.js?

Hello, I have a client app which shows a list of PDFs . I want the user to be able to check some of them and click a download button which will download a zip file containing all the files. The way I can think of doing this is creating a folder in the backend placing all the files in it, zipping and sending. Is there any way I can create a zip on the fly and send it instead of having to download all the files in the backend?

Top comments (0)