Build a ZIP file in Node.js with zero dependencies (and four bugs I hit downloading files in bulk)
I recently built a bulk file downloader: a list of URLs in, every file stored, plus one ZIP of everything at the end. The ZIP part turned out to need no library…


![Causality and Scientific AI — Ch.07: Chapter 07. Engineering and Deployment [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw0oyy1iglwg1mra44t0o.png)
![Causality and Scientific AI — Ch.08: Chapter 08. Experiments and Benchmarks [EN]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5oxtg229wb7lvvggjzxh.png)
![Causality and Scientific AI — Ch.01: Chapter 01. Causal Inference [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fipib6a4bf9ybg77pp33v.png)
![Causality and Scientific AI — Ch.02: Chapter 02. Structural Causal Model [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0i46qqamr3mydhzhv898.png)
![Causality and Scientific AI — Ch.03: Chapter 03. Counterfactual Reasoning [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0umgbtzqzellatza9g4r.png)
![Causality and Scientific AI — Ch.04: Chapter 04. AI for Science [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fppkbq6jnm3fg3660wrxg.png)
![Causality and Scientific AI — Ch.05: Chapter 05. Causal AI and Learning [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo3ud7f0l7gmkr5pxq8oh.png)
![Causality and Scientific AI — Ch.06: Chapter 06. Advanced Causality [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F57o27dxj4yqjt3gk55db.png)