node-unpacker
Advanced tools
Comparing version
@@ -69,3 +69,3 @@ var fs = require('fs'); | ||
fs.createReadStream(path) | ||
.pipe(zlib.createGzip() | ||
.pipe(zlib.createGunzip() | ||
.on('error', function (e) { | ||
@@ -72,0 +72,0 @@ q.reject(e); |
{ | ||
"name": "node-unpacker", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Simple unpacker for node", | ||
@@ -5,0 +5,0 @@ "main": "inflator.js", |
@@ -1,7 +0,16 @@ | ||
# node-unpacker | ||
Simple unpacker for node that wraps UNZIP, UNTAR and UNRAR | ||
node-unpacker | ||
============= | ||
[](https://travis-ci.org/abaltra/node-unpacker) | ||
> Simple unpacker for node that wraps UNZIP, UNTAR and UNRAR | ||
## Installation | ||
You must have the `7za` executable in your path or in the same directory as you `package.json`. Remember, `7zip` requires the `rar` plugin to be installed to manage RAR files. | ||
``` | ||
sudo apt-get install -y 7zip-full 7zip-rar | ||
npm install node-unpacker --save | ||
``` | ||
## Usage | ||
@@ -8,0 +17,0 @@ ``` |
var unpacker = require('./inflator'); | ||
unpacker.unpackFile('./test/files/zipped_files.zip', './inflated', true).then( | ||
unpacker.unpackFile('./test/files/linux-gzip.png.gz', './inflated', true).then( | ||
function (data) { | ||
@@ -5,0 +5,0 @@ console.log('unpack done!') |
Sorry, the diff of this file is not supported yet
25094963
0.07%40
29.03%26
-68.67%