You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rdrew 1440706ce3 fixed gulp 6 years ago
..
node_modules/vinyl fixed gulp 6 years ago
index.js fixed gulp 6 years ago
license fixed gulp 6 years ago
package.json fixed gulp 6 years ago
readme.md fixed gulp 6 years ago

readme.md

decompress-unzip Build Status

zip decompress plugin

Install

$ npm install --save decompress-unzip

Usage

const Decompress = require('decompress');
const decompressUnzip = require('decompress-unzip');

new Decompress()
	.src('foo.zip')
	.dest('dest')
	.use(decompressUnzip({strip: 1}))
	.run();

You can also use this plugin with gulp:

const decompressUnzip = require('decompress-unzip');
const gulp = require('gulp');
const vinylAssign = require('vinyl-assign');

gulp.task('default', () => {
	return gulp.src('foo.zip')
		.pipe(vinylAssign({extract: true}))
		.pipe(decompressUnzip({strip: 1}))
		.pipe(gulp.dest('dest'));
});

API

decompressUnzip(options)

options.strip

Type: number
Default: 0

Remove leading directory components from extracted files.

License

MIT © Kevin Mårtensson