Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mborne/node-extract

Extract archives (7z, zip, bz2, gz,...) using system executables
https://github.com/mborne/node-extract

Last synced: 26 days ago
JSON representation

Extract archives (7z, zip, bz2, gz,...) using system executables

Awesome Lists containing this project

README

        

# node-extract

[![Node.js CI](https://github.com/mborne/node-extract/actions/workflows/node.js.yml/badge.svg)](https://github.com/mborne/node-extract/actions/workflows/node.js.yml) [![Coverage Status](https://coveralls.io/repos/github/mborne/node-extract/badge.svg?branch=master)](https://coveralls.io/github/mborne/node-extract?branch=master)

## Description

Extract archives (7z, zip, bz2, gz,...) using system executables

## Usage

```js
const extract = require('@mborne/extract');

await extract({
archivePath: '/path/to/archive.zip'
});
```

## Options

| Name | Required? | Description | Default |
| ------------- | :-------: | ------------------------------- | :--------------: |
| `archivePath` | YES | Archive path | NA |
| `targetDir` | NO | Target directory for extraction | Parent directory |

## License

[MIT](LICENSE)