You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to create a zip from existing file/folder structures?
I would like to do something like:
const fs = require("fs");
const Zip = require('node-zip');
const zip = new Zip();
zip.folder('./src/existing-folder-with-files-and-subfolders');
var data = zip.generate({base64: false, compression: 'DEFLATE'});
fs.writeFileSync('./output/zipped-files-exactly-as-they-appear-in-filesystem.zip', data, 'binary');
Instead of creating new files and folders from within the zip utility. Is this possible?
warapitiya, kylehodgetts, fauzandotme, abc3660170, adelriosantiago and 1 more