🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

gulp-tar

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-tar

Create tarball from files

latest
Source
npmnpm
Version
5.0.0
Version published
Weekly downloads
10K
3.33%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Cross-platform permissions

On Windows, directories created by the filesystem often lack execute permissions, which can cause "Permission denied" errors when extracting tarballs on Unix systems. This package automatically detects and fixes this issue on Windows by letting Archiver use proper defaults for directories without execute permissions.

If you need to explicitly control this behavior, you can use {mode: null} to always use Archiver's defaults, regardless of the source file permissions.

Keywords

gulpplugin

FAQs

Package last updated on 16 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts