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

Simple unpacker for node

1.3.4
latest
Source
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

node-unpacker

Build Status

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

var inflator = require('node-unpacker');
inflator.unpackFile('MY_FILE', 'OUTPUT_DIR', GENERATE_RANDOM_FOLDER).then(
  function (data) {
     // data contains the route to the new folder with the unpacked data
  },
  function (error) {
     // in case of whoops
  }
)

Tests

npm test

Contributing

Feel free to contribute, let's just try to keep it readable :)

Release History

  • 0.4.0 Added support for GZ files
  • 0.2.0 Changed Zip management, added error management
  • 0.1.0 Initial release

Keywords

node

FAQs

Package last updated on 25 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.