pentest-distro-builder/filesystem/root/.vscode/extensions/ms-vscode.powershell-1.8.4/node_modules/gulp-untar
2018-10-17 15:35:13 -06:00
..
node_modules Parrot preseed changes 2018-10-17 15:35:13 -06:00
index.js Parrot preseed changes 2018-10-17 15:35:13 -06:00
package.json Parrot preseed changes 2018-10-17 15:35:13 -06:00
README.md Parrot preseed changes 2018-10-17 15:35:13 -06:00

gulp-untar

NPM version Build Status

Extract tarballs in your gulp build pipeline

Accepts source files with either stream or Buffer contents. Outputs files with Buffer contents.

Install

$ npm install --save-dev gulp-untar

Usage

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

  gulp.task('extract-archives', function () {
    return gulp.src('./archive/*.tar')
      .pipe(untar())
      .pipe(gulp.dest('./extracted'))
  })

In combination with gulp-gunzip 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