Skip to content
A gulp wrapper for AdvZIP: minify your zip files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.txt
README.md
index.js
package.json

README.md

gulp-advzip status Coverage Status

A gulp wrapper for AdvZIP: minify your zip files

Install

$ npm install --save-dev gulp-advzip

Usage

const zip = require('gulp-zip');
const advzip = require('gulp-advzip');

gulp.task('zip', () => {
    gulp.src(['my files...'])
        .pipe(zip('archive.zip'))
        .pipe(advzip())
        .pipe(gulp.dest('out'));
});

API

advzip([options])

options

Type: Object

optimizationLevel

Type: number

Select an optimization level between 0 and 4. Corresponds to command-line options -0 through -4.

iterations

Type: number

Optionally specify an additional number of iterations to perform for optimization levels 3 and 4. May provide marginally better compression, at the cost of additional time. Corresponds to command-line option '-i N'.

License

Licensed under MIT. Full license here »

You can’t perform that action at this time.