2.0.0 • Published 5 years ago

advzip-bin v2.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

advzip-bin Build Status

Recompress ZIP files to their smallest possible sizes.

Install

$ npm install --save advzip-bin

Usage

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!');
});

CLI Usage

$ npm install --global advzip-bin
$ advzip --help

Inspiration

Package structure lifted from the sister package advpng-bin.

License

Licensed under MIT. Full license here »