# @xhmikosr/decompress-tarbz2

> decompress tar.bz2 plugin

Latest version **9.0.2** (published 2026-06-03) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 9.0.2 |
| Published | 2026-06-03 |
| First published | 2023-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 5 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Mårtensson |
| Maintainers | xhmikosr |
| Keywords | bz2, decompress, decompressplugin, extract, tar, tar.bz2, tarbz2 |

## Links

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

## Dependencies (5)

- [file-type](https://npm.io/package/file-type.md) ^21.3.4
- [is-stream](https://npm.io/package/is-stream.md) ^4.0.1
- [seek-bzip](https://npm.io/package/seek-bzip.md) ^2.0.0
- [unbzip2-stream](https://npm.io/package/unbzip2-stream.md) ^1.4.3
- [@xhmikosr/decompress-tar](https://npm.io/package/@xhmikosr/decompress-tar.md) ^9.0.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

- 9.0.2 (latest) — 2026-06-03
- 9.0.1 — 2026-02-24
- 9.0.0 — 2026-02-24
- 8.1.0 — 2025-07-22
- 8.0.2 — 2025-01-12
- 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

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

> tar.bz2 decompress plugin


## Install

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


## Usage

```js
import decompress from '@xhmikosr/decompress';
import decompressTarbz from '@xhmikosr/decompress-tarbz2';

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


## API

### decompressTarbz()(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 to decompress.


## License

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

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