Skip to content

sseixas/gulp-tar

 
 

Repository files navigation

gulp-tar Build Status

Create tarball from files

Install

$ npm install --save-dev gulp-tar

Usage

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

gulp.task('default', function () {
	return 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 file headers passed to tar-stream.

License

MIT © Sindre Sorhus

About

Create tarball from files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%