decompress
Advanced tools
Comparing version 2.3.0 to 3.0.0
'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 @@ |
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
9
1
6527
3
4
105
137
1
+ Addedarr-diff@2.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarray-unique@0.2.1(transitive)
+ Addedbraces@1.8.5(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedexpand-brackets@0.1.5(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextend-shallow@2.0.1(transitive)
+ Addedextglob@0.3.2(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.4(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.03.1.0(transitive)
+ Addedglob-stream@5.3.5(transitive)
+ Addedgulp-sourcemaps@1.6.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedis-extglob@1.0.02.1.1(transitive)
+ Addedis-glob@2.0.13.1.0(transitive)
+ Addedis-number@2.1.04.0.0(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedis-valid-glob@0.3.0(transitive)
+ Addedisobject@2.1.0(transitive)
+ Addedkind-of@3.2.26.0.3(transitive)
+ Addedlazystream@1.0.1(transitive)
+ Addedlodash.isequal@4.5.0(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmerge-stream@1.0.1(transitive)
+ Addedmicromatch@2.3.11(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedordered-read-streams@0.3.0(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedpath-dirname@1.0.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedstrip-bom-stream@1.0.0(transitive)
+ Addedthrough2-filter@2.0.0(transitive)
+ Addedto-absolute-glob@0.1.1(transitive)
+ Addedvali-date@1.0.0(transitive)
+ Addedvinyl-fs@2.4.4(transitive)
- Removedget-stdin@^4.0.1
- Removedmeow@^3.0.0
- Removedarray-find-index@1.0.2(transitive)
- Removedcamelcase@2.1.1(transitive)
- Removedcamelcase-keys@2.1.0(transitive)
- Removedcurrently-unhandled@0.4.1(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedfind-index@0.1.1(transitive)
- Removedfind-up@1.1.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgaze@0.5.2(transitive)
- Removedglob@3.1.214.5.3(transitive)
- Removedglob-stream@4.1.1(transitive)
- Removedglob-watcher@0.0.8(transitive)
- Removedglob2base@0.0.12(transitive)
- Removedglobule@0.1.0(transitive)
- Removedgraceful-fs@1.2.33.0.12(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedindent-string@2.1.0(transitive)
- Removedinherits@1.0.2(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedload-json-file@1.1.0(transitive)
- Removedlodash@1.0.2(transitive)
- Removedloud-rejection@1.6.0(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedmap-obj@1.0.1(transitive)
- Removedmeow@3.7.0(transitive)
- Removedmerge-stream@0.1.8(transitive)
- Removedminimatch@0.2.142.0.10(transitive)
- Removednatives@1.1.6(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removedordered-read-streams@0.1.0(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-exists@2.1.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@1.1.0(transitive)
- Removedpify@2.3.0(transitive)
- Removedread-pkg@1.1.0(transitive)
- Removedread-pkg-up@1.0.1(transitive)
- Removedredent@1.0.0(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedstrip-bom@1.0.0(transitive)
- Removedstrip-indent@1.0.1(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtrim-newlines@1.0.0(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedvinyl-fs@1.0.0(transitive)
Updatedstream-combiner2@^1.1.1
Updatedvinyl-fs@^2.2.0