Wakanda module to zip and unzip files and folders.
var modulesFolder = FileSystemSync('Modules');
var zip = require(modulesFolder.path + 'zip');
var desktop = FileSystemSync('Desktop').path;
var input = desktop + "sample";
var output = desktop + "test.zip";
var level = 0;//default, 1-9
var ignoredotfile = true;
var verbose = false;
zip.zip(input, output, level, ignoredotfile, verbose);
input = output;
output = desktop + "test";
zip.unzip(input, output, ignoredotfile, verbose);
Note: Unicode file paths are supported on all platforms. You can ignore dot files and dot folders for both archiving and extracting. Specifying the verbose option will list all relative paths in stdOut.
Source code for the wazip and waunzip programs are on GitHub.