Extract TAR, TAR.BZ2, TAR.GZ and ZIP archives using decompress
$ npm install --save gulp-decompress
const decompress = require('gulp-decompress');
const gulp = require('gulp');
gulp.task('default', () => {
return gulp.src('*.{tar,tar.bz2,tar.gz,zip}')
.pipe(decompress({strip: 1}))
.pipe(gulp.dest('dist'));
});
See the decompress options.
MIT © Kevin Mårtensson