Skip to content
Create tarball from files
Branch: master
Clone or download
Latest commit e54fb9f Dec 31, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixture init Dec 22, 2013
.editorconfig Require Node.js 4 Jun 8, 2017
.gitattributes Require Node.js 4 Jun 8, 2017
.gitignore Drop gulp-util Dec 31, 2017
.npmrc Drop gulp-util Dec 31, 2017
.travis.yml Require Node.js 4 Jun 8, 2017
gulpfile.js Require Node.js 4 Jun 8, 2017
index.js Drop gulp-util Dec 31, 2017
license Require Node.js 4 Jun 8, 2017
package.json 2.1.0 Dec 31, 2017
readme.md Require Node.js 4 Jun 8, 2017
test.js Drop gulp-util Dec 31, 2017

readme.md

gulp-tar Build Status

Create tarball from files

Install

$ npm install --save-dev gulp-tar

Usage

const gulp = require('gulp');
const tar = require('gulp-tar');
const gzip = require('gulp-gzip');

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

API

tar(filename, [options])

filename

Type: string

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.

License

MIT © Sindre Sorhus

You can’t perform that action at this time.