gulp-tar-path

1.0.2 • Public • Published

gulp-tar-path

Create tarball from files and directories

Install

$ npm install --save gulp-tar-path

Usage

const gulp = require('gulp');
const tar = require('gulp-tar-path');
const gzip = require('gulp-gzip');
 
gulp.task('tar', function() { 
  gulp.src(["app.js", "bin", "src"])
    .pipe(tar('archive.tar'))
    .pipe(gulp.dest('./'))
});

API

tar(filename, [options])

filename

Type: string

Filename for the output tar archive.

options

Type: object

Default file headers passed to tar-stream.

License

MIT ©

/gulp-tar-path/

    Package Sidebar

    Install

    npm i gulp-tar-path

    Weekly Downloads

    2

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • taowangpro