Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-advzip with all npm packages installed. Try it out:

var gulpAdvzip = require("gulp-advzip")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-advzip v1.2.0

A gulp wrapper for AdvZIP: minify your zip files

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 »

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free