gulp-unzip
gulp plugin for unzip
Last updated a year ago by terrierscript .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-unzip 
SYNC missed versions from official npm registry.

travis dependencies devDependencies Downloads per Week NPM Open PRs Open Issues

gulp-unzip

gulp plugin for unzip file.

Usage

npm install gulp-unzip --save
var unzip = require('gulp-unzip')
gulp.task('filter_sample', function(){
  gulp.src("./download/bootstrap-3.1.1-dist.zip")
    .pipe(unzip())
    .pipe(gulp.dest('./tmp'))
})

Options

filter

You can provide a filter option. It should be a function that gets an entry as an argument and returns true or false.

var concat = require('gulp-concat')
var unzip = require('gulp-unzip')
var minimatch = require('minimatch')
gulp.task('filter_sample', function(){
  gulp.src("./download/bootstrap-3.1.1-dist.zip")
    .pipe(unzip({
      filter : function(entry){
        return minimatch(entry.path, "**/*.min.css")
      }
    }))
    .pipe(concat("bootstrap.css"))
    .pipe(gulp.dest('./tmp'))
})

keepEmpty

You can provide true or false in keepEmpty for whether you want to extract empty files from the archive or not. Defaults to false.

gulp.task('filter_sample', function(){
  gulp.src("./download/bootstrap-3.1.1-dist.zip")
    .pipe(unzip({ keepEmpty : true }))
    //...
})

Contributors

If you want to contribute to the project, please check de Contribution Guidelines

Author

Maintainers

Contributors

Current Tags

  • 1.1.0                                ...           latest (a year ago)

10 Versions

  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.0                                ...           7 years ago

Copyright 2014 - 2016 © taobao.org |