Skip to content

elliot-nelson/advzip-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 »

About

AdvZIP bin-wrapper that makes it seamlessly available as a local dependency

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors