Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-decompress

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-decompress - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

8

index.js

@@ -12,4 +12,2 @@ 'use strict';

return through.obj(function (file, enc, cb) {
var self = this;
if (file.isNull()) {

@@ -39,10 +37,10 @@ cb(null, file);

if (err) {
cb(new gutil.PluginError('gulp-decompress:', err, { fileName: file.path }));
cb(new gutil.PluginError('gulp-decompress:', err, {fileName: file.path}));
return;
}
files.forEach(self.push.bind(self));
files.forEach(this.push.bind(this));
cb();
});
}.bind(this));
});
};
{
"name": "gulp-decompress",
"version": "1.0.2",
"version": "1.1.0",
"description": "Extract TAR, TAR.BZ2, TAR.GZ and ZIP archives",

@@ -34,6 +34,6 @@ "license": "MIT",

"dependencies": {
"archive-type": "^2.0.0",
"archive-type": "^3.0.0",
"decompress": "^2.1.1",
"gulp-util": "^3.0.1",
"through2": "^0.6.3"
"through2": "^2.0.0"
},

@@ -40,0 +40,0 @@ "devDependencies": {

@@ -5,8 +5,10 @@ # gulp-decompress [![Build Status](http://img.shields.io/travis/kevva/gulp-decompress.svg?style=flat)](https://travis-ci.org/kevva/gulp-decompress)

## Install
```sh
```
$ npm install --save gulp-decompress
```
## Usage

@@ -20,3 +22,3 @@

return gulp.src('*.{tar,tar.bz2,tar.gz,zip}')
.pipe(decompress({ strip: 1 }))
.pipe(decompress({strip: 1}))
.pipe(gulp.dest('dist'));

@@ -26,2 +28,3 @@ });

## Options

@@ -31,14 +34,15 @@

Type: `String`
Type: `string`
Set mode on the extracted files, i.e `{ mode: '755' }`.
Set mode on the extracted files, i.e `{mode: '755'}`.
### strip
Type: `Number`
Type: `number`
Equivalent to `--strip-components` for tar.
## License
MIT © [Kevin Mårtensson](https://github.com/kevva)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc