All Projects → sindresorhus → Gulp Zip

sindresorhus / Gulp Zip

Licence: mit
ZIP compress files

Programming Languages

javascript
137047 projects - #8 most used programming language

Projects that are alternatives of or similar to Gulp Zip

Zipstorer
A Pure C# Class to Store Files in Zip
Stars: ✭ 139 (-46.95%)
Mutual labels:  zip, compression
Turbobench
Compression Benchmark
Stars: ✭ 211 (-19.47%)
Mutual labels:  zip, compression
Bit7z
A C++ static library offering a clean and simple interface to the 7-zip DLLs.
Stars: ✭ 159 (-39.31%)
Mutual labels:  zip, compression
Zip
Efficient library for manipulating zip archives
Stars: ✭ 69 (-73.66%)
Mutual labels:  zip, compression
zip-bucket
zips files in a Google Cloud Storage [tm] bucket
Stars: ✭ 32 (-87.79%)
Mutual labels:  compression, zip
Zippy
Pure Nim implementation of deflate, zlib, gzip and zip.
Stars: ✭ 88 (-66.41%)
Mutual labels:  zip, compression
Datacompression
Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)
Stars: ✭ 191 (-27.1%)
Mutual labels:  zip, compression
Leanify
lightweight lossless file minifier/optimizer
Stars: ✭ 694 (+164.89%)
Mutual labels:  zip, compression
box
Box - Open Standard Archive Format, a zip killer.
Stars: ✭ 38 (-85.5%)
Mutual labels:  compression, zip
Perfect-Zip
Perfect Zip compression utility.
Stars: ✭ 20 (-92.37%)
Mutual labels:  compression, zip
Zipper
🗳A library to create, read and modify ZIP archive files, written in Swift.
Stars: ✭ 38 (-85.5%)
Mutual labels:  zip, compression
lzbase62
LZ77(LZSS) based compression algorithm in base62 for JavaScript.
Stars: ✭ 38 (-85.5%)
Mutual labels:  compression, zip
Peazip
Free Zip / Unzip software and Rar file extractor. Cross-platform file and archive manager. Features volume spanning, compression, authenticated encryption. Supports 7Z, 7-Zip sfx, ACE, ARJ, Brotli, BZ2, CAB, CHM, CPIO, DEB, GZ, ISO, JAR, LHA/LZH, NSIS, OOo, PAQ/LPAQ, PEA, QUAD, RAR, RPM, split, TAR, Z, ZIP, ZIPX, Zstandard.
Stars: ✭ 827 (+215.65%)
Mutual labels:  zip, compression
Sharpcompress
SharpCompress is a fully managed C# library to deal with many compression types and formats.
Stars: ✭ 1,397 (+433.21%)
Mutual labels:  zip, compression
Minizip Ng
Fork of the popular zip manipulation library found in the zlib distribution.
Stars: ✭ 750 (+186.26%)
Mutual labels:  zip, compression
Zip
Swift framework for zipping and unzipping files.
Stars: ✭ 2,120 (+709.16%)
Mutual labels:  zip, compression
Libzip
A C library for reading, creating, and modifying zip archives.
Stars: ✭ 379 (+44.66%)
Mutual labels:  zip, compression
Zip
A portable, simple zip library written in C
Stars: ✭ 596 (+127.48%)
Mutual labels:  zip, compression
unzip
Tiny unzip helper class for .NET 3.5 Client Profile and Mono 2.10, written in pure C#.
Stars: ✭ 25 (-90.46%)
Mutual labels:  compression, zip
ratarmount
Random Access Read-Only Tar Mount
Stars: ✭ 217 (-17.18%)
Mutual labels:  compression, zip

gulp-zip

ZIP compress files

Install

$ npm install --save-dev gulp-zip

Usage

const gulp = require('gulp');
const zip = require('gulp-zip');

exports.default = () => (
	gulp.src('src/*')
		.pipe(zip('archive.zip'))
		.pipe(gulp.dest('dist'))
);

API

Supports streaming mode.

zip(filename, options?)

filename

Type: string

options

Type: object

compress

Type: boolean
Default: true

modifiedTime

Type: Date
Default: undefined

Overrides the modification timestamp for all files added to the archive.

Tip: Setting it to the same value across executions enables you to create stable archives that change only when the contents of their entries change, regardless of whether those entries were "touched" or regenerated.

buffer

Type: boolean
Default: true

If true, the resulting ZIP file contents will be a buffer. Large zip files may not be possible to buffer, depending on the size of Buffer MAX_LENGTH. If false, the ZIP file contents will be a stream.

We use this option instead of relying on gulp.src's buffer option because we are mapping many input files to one output file and can't reliably detect what the output mode should be based on the inputs, since Vinyl streams could contain mixed streaming and buffered content.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected]