gulp-tar

4.0.0 • Public • Published

gulp-tar

Create tarball from files

Install

npm install --save-dev gulp-tar

Usage

import gulp from 'gulp';
import tar from 'gulp-tar';
import gzip from 'gulp-gzip';

export default () => (
	gulp.src('src/*')
		.pipe(tar('archive.tar'))
		.pipe(gzip())
		.pipe(gulp.dest('dist'))
);

API

tar(filename, options?)

filename

Type: string

The filename for the output tar archive.

options

Type: object

Default options passed to Archiver's constructor and merged into the data passed to its append method.

/gulp-tar/

    Package Sidebar

    Install

    npm i gulp-tar

    Weekly Downloads

    6,728

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    4.14 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus