Recompress ZIP files to their smallest possible sizes.
$ npm install --save advzip-bin
When installed in a project, the advzip
executable will be installed in your node_modules
folder. Require the advzip-bin
module from your project to retrieve the path to the executable,
for example:
const { execFile } = require('child_process');
const advzip = require('advzip-bin');
execFile(advzip, ['--recompress', '--shrink-extra', 'archive.zip'], err => {
console.log('ZIP file minified!');
});
$ npm install --global advzip-bin
$ advzip --help
Package structure lifted from the sister package advpng-bin.
Licensed under MIT. Full license here »