Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Uncompress gzip files in your gulp build pipeline
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
fixtures
.gitignore
.jshintrc
.travis.yml
README.md
index.js
package.json
test.js

README.md

gulp-gunzip

NPM version Build Status

Uncompress gzip files in your gulp build pipeline

Install

$ npm install --save-dev gulp-gunzip

Usage

var gulp = require('gulp')
var gunzip = require('gulp-gunzip')

gulp.task('uncompress', function () {
  return gulp.src('./compressed/*.gz')
    .pipe(gunzip())
    .pipe(gulp.dest('./uncompressed'))
})

In combination with gulp-untar and vinyl-source-stream:

var gulp = require('gulp')
var request = require('request')
var source = require('vinyl-source-stream')
var gunzip = require('gulp-gunzip')
var untar = require('gulp-untar')

gulp.task('default', function () {
  return request('http://example.org/some-file.tar.gz')
  .pipe(source('some-file.tar.gz'))
  .pipe(gunzip())
  .pipe(untar())
  .pipe(gulp.dest('output'))
})

License

MIT

© Jon Merrifield

Something went wrong with that request. Please try again.