Created
August 29, 2023 22:48
-
-
Save aalonzolu/1ba64138061d903563b74cfc583e4254 to your computer and use it in GitHub Desktop.
npm install adm-zip --save
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AdmZip = require("adm-zip"); | |
var zip = new AdmZip(); | |
// Agregar archivos (hacer loop por cada archivo en tu lista) | |
zip.addLocalFile("/home/me/some_picture.png"); | |
// Escribir el archivo final | |
zip.writeZip("PATH DEL RESULTADO.zip"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment