# @xhmikosr/decompress-targz

> decompress tar.gz plugin

Latest version **9.0.1** (published 2026-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xhmikosr/decompress-targz
pnpm add @xhmikosr/decompress-targz
yarn add @xhmikosr/decompress-targz
bun add @xhmikosr/decompress-targz
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 9.0.1 |
| Published | 2026-02-24 |
| First published | 2023-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 3 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Mårtensson |
| Maintainers | xhmikosr |
| Keywords | decompress, decompressplugin, extract, tar.gz, targz |

## Links

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

## Dependencies (3)

- [file-type](https://npm.io/package/file-type.md) ^21.3.0
- [is-stream](https://npm.io/package/is-stream.md) ^4.0.1
- [@xhmikosr/decompress-tar](https://npm.io/package/@xhmikosr/decompress-tar.md) ^9.0.0

## 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

- 9.0.1 (latest) — 2026-02-24
- 9.0.0 — 2026-02-24
- 8.1.0 — 2025-07-22
- 8.0.1 — 2024-04-02
- 8.0.0 — 2024-04-01
- 7.0.0 — 2023-06-22
- 6.0.0 — 2023-06-05
- 5.0.0 — 2023-05-31

## README

# decompress-targz [![npm version](https://img.shields.io/npm/v/@xhmikosr/decompress-targz?logo=npm&logoColor=fff)](https://www.npmjs.com/package/@xhmikosr/decompress-targz) [![CI Status](https://img.shields.io/github/actions/workflow/status/XhmikosR/decompress-targz/ci.yml?branch=master&label=CI&logo=github)](https://github.com/XhmikosR/decompress-targz/actions/workflows/ci.yml?query=branch%3Amaster)

> tar.gz decompress plugin


## Install

```sh
npm install @xhmikosr/decompress-targz
```


## Usage

```js
import decompress from '@xhmikosr/decompress';
import decompressTargz from '@xhmikosr/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/@xhmikosr/decompress-targz · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
