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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay