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

https://github.com/runnerty/executor-decompress

Runnerty module: Decompress executor
https://github.com/runnerty/executor-decompress

Last synced: over 1 year ago
JSON representation

Runnerty module: Decompress executor

Awesome Lists containing this project

README

          





Smart Processes Management

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependency Status][david-badge]][david-badge-url]

code style: prettier

# Decompress executor for [Runnerty]:

Requires `tar`, `unzip`, `gunzip`, `7z` and `rar` CLI tools to be installed in the SO.

### Installation:

Through NPM

```bash
npm i @runnerty/executor-decompress
```

You can also add modules to your project with [runnerty-cli]

```bash
npx runnerty-cli add @runnerty/executor-decompress
```

This command installs the module in your project, adds example configuration in your `config.json` and creates an example plan of use.

If you have installed [runnerty-cli] globally you can include the module with this command:

```bash
rty add @runnerty/executor-decompress
```

### Configuration sample:

Add in [config.json]:

```json
{
"id": "decompress_default",
"type": "@runnerty-executor-decompress"
}
```

### Plan sample:

Add in [plan.json]:

```json
{
"id": "decompress_default",
"compress_file": "./input.zip",
"decompress_dir": "./"
}
```

```json
{
"id": "decompress_default",
"compress_file": "./input.7z",
"decompress_dir": "./"
}
```

[runnerty]: http://www.runnerty.io
[downloads-image]: https://img.shields.io/npm/dm/@runnerty/executor-decompress.svg
[npm-url]: https://www.npmjs.com/package/@runnerty/executor-decompress
[npm-image]: https://img.shields.io/npm/v/@runnerty/executor-decompress.svg
[david-badge]: https://david-dm.org/runnerty/executor-decompress.svg
[david-badge-url]: https://david-dm.org/runnerty/executor-decompress
[config.json]: http://docs.runnerty.io/config/
[plan.json]: http://docs.runnerty.io/plan/
[runnerty-cli]: https://www.npmjs.com/package/runnerty-cli