# decompress-targz

> decompress tar.gz plugin

Latest version **4.1.1** (published 2017-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install decompress-targz
pnpm add decompress-targz
yarn add decompress-targz
bun add decompress-targz
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.1 |
| Published | 2017-07-27 |
| First published | 2014-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | decompress, decompressplugin, extract, tar.gz, targz |

## Links

- npm: https://www.npmjs.com/package/decompress-targz
- Repository: https://github.com/kevva/decompress-targz
- Homepage: https://github.com/kevva/decompress-targz#readme
- Issues: https://github.com/kevva/decompress-targz/issues
- npm.io page: https://npm.io/package/decompress-targz

## Dependencies (3)

- [file-type](https://npm.io/package/file-type.md) ^5.2.0
- [is-stream](https://npm.io/package/is-stream.md) ^1.1.0
- [decompress-tar](https://npm.io/package/decompress-tar.md) ^4.1.1

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 4.1.1 (latest) — 2017-07-27
- 4.1.0 — 2017-05-20
- 4.0.0 — 2016-05-20
- 3.1.0 — 2015-03-24
- 3.0.0 — 2015-03-09
- 2.1.0 — 2015-01-03
- 2.0.2 — 2014-09-16
- 2.0.1 — 2014-09-15
- 2.0.0 — 2014-09-13
- 1.0.3 — 2014-09-05
- 1.0.2 — 2014-08-28
- 1.0.1 — 2014-08-19
- 1.0.0 — 2014-08-15
- 0.1.1 — 2014-06-13
- 0.1.0 — 2014-06-13

## README

# decompress-targz [![Build Status](https://travis-ci.org/kevva/decompress-targz.svg?branch=master)](https://travis-ci.org/kevva/decompress-targz)

> tar.gz decompress plugin


## Install

```
$ npm install decompress-targz
```


## Usage

```js
const decompress = require('decompress');
const decompressTargz = require('decompress-targz');

decompress('unicorn.tar.gz', 'dist', {
	plugins: [
		decompressTargz()
	]
}).then(() => {
	console.log('Files decompressed');
});
```


## API

### decompressTargz()(input)

Returns both a Promise for a Buffer and a [Duplex stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex).

#### input

Type: `Buffer` `Stream`

Buffer or stream to decompress.


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)

---
_Source: https://npm.io/package/decompress-targz · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
