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

decompress

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decompress - npm Package Compare versions

Comparing version 2.3.0 to 3.0.0

5

index.js
'use strict';
var bufferToVinyl = require('buffer-to-vinyl');
var concatStream = require('concat-stream');
var streamCombiner = require('stream-combiner2');
var concatStream = require('concat-stream');
var vinylFs = require('vinyl-fs');

@@ -106,3 +105,3 @@ var vinylAssign = require('vinyl-assign');

return streamCombiner(this.streams);
return streamCombiner.obj(this.streams);
};

@@ -109,0 +108,0 @@

19

package.json
{
"name": "decompress",
"version": "2.3.0",
"version": "3.0.0",
"description": "Extracting archives made easy",

@@ -15,10 +15,6 @@ "license": "MIT",

},
"bin": {
"decompress": "cli.js"
},
"scripts": {
"test": "node test/test.js"
"test": "xo && ava"
},
"files": [
"cli.js",
"index.js"

@@ -44,12 +40,11 @@ ],

"decompress-unzip": "^3.0.0",
"get-stdin": "^4.0.1",
"meow": "^3.0.0",
"stream-combiner2": "^1.0.2",
"stream-combiner2": "^1.1.1",
"vinyl-assign": "^1.0.1",
"vinyl-fs": "^1.0.0"
"vinyl-fs": "^2.2.0"
},
"devDependencies": {
"ava": "^0.0.4",
"rimraf": "^2.2.8"
"ava": "0.2.0",
"rimraf": "^2.2.8",
"xo": "*"
}
}

@@ -1,5 +0,6 @@

# decompress [![Build Status](http://img.shields.io/travis/kevva/decompress.svg?style=flat)](https://travis-ci.org/kevva/decompress)
# decompress [![Build Status](https://travis-ci.org/kevva/decompress.svg?branch=master)](https://travis-ci.org/kevva/decompress)
> Extracting archives made easy
*See [decompress-cli](https://github.com/kevva/decompress-cli) for the command-line version.*

@@ -16,3 +17,3 @@ ## Install

```js
var Decompress = require('decompress');
const Decompress = require('decompress');

@@ -89,3 +90,3 @@ new Decompress({mode: '755'})

### .tar()
### .tar(options)

@@ -95,9 +96,9 @@ Extract TAR files.

```js
var Decompress = require('decompress');
const Decompress = require('decompress');
var decompress = new Decompress()
new Decompress()
.use(Decompress.tar({strip: 1}));
```
### .tarbz2()
### .tarbz2(options)

@@ -107,9 +108,9 @@ Extract TAR.BZ files.

```js
var Decompress = require('decompress');
const Decompress = require('decompress');
var decompress = new Decompress()
new Decompress()
.use(Decompress.tarbz2({strip: 1}));
```
### .targz()
### .targz(options)

@@ -119,9 +120,9 @@ Extract TAR.GZ files.

```js
var Decompress = require('decompress');
const Decompress = require('decompress');
var decompress = new Decompress()
new Decompress()
.use(Decompress.targz({strip: 1}));
```
### .zip()
### .zip(options)

@@ -131,5 +132,5 @@ Extract ZIP files.

```js
var Decompress = require('decompress');
const Decompress = require('decompress');
var decompress = new Decompress()
new Decompress()
.use(Decompress.zip({strip: 1}));

@@ -139,27 +140,4 @@ ```

## CLI
```
$ npm install --global decompress
```
```
$ decompress --help
Usage
$ decompress <file> [directory]
$ cat <file> | decompress [directory]
Example
$ decompress --strip 1 file.zip out
$ cat file.zip | decompress out
Options
-m, --mode Set mode on the extracted files
-s, --strip 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