Socket
Book a DemoInstallSign in
Socket

node-unpacker

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-unpacker - npm Package Compare versions

Comparing version

to
1.3.4

inflated/0821b43a-9b45-443e-b5cf-c22000f40b49/linux-gzip.png

2

inflator.js

@@ -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
=============
[![Build Status](https://travis-ci.org/abaltra/node-unpacker.svg?branch=master)](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