# @types/node-targz

> TypeScript definitions for node-targz

Latest version **0.2.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/node-targz
pnpm add @types/node-targz
yarn add @types/node-targz
bun add @types/node-targz
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.4 |
| Published | 2023-11-07 |
| First published | 2023-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/node-targz
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-targz
- npm.io page: https://npm.io/package/@types/node-targz

## Dependencies (1)

- [@types/tar-fs](https://npm.io/package/@types/tar-fs.md) *

## Recent versions

- 0.2.4 (latest) — 2023-11-07
- 0.2.0 (ts4.2) — 2023-02-19
- 0.2.3 — 2023-10-26
- 0.2.2 — 2023-10-18
- 0.2.1 — 2023-09-23

## README

# Installation
> `npm install --save @types/node-targz`

# Summary
This package contains type definitions for node-targz (https://github.com/lafin/node-targz#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-targz.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-targz/index.d.ts)
````ts
import type { PathLike } from "fs";
import type { ExtractOptions, PackOptions } from "tar-fs";

export interface CompressOptions {
    source: string;
    /** Options to pass down to tar-fs */
    options?: PackOptions | undefined;
    level?: number | undefined;
    memLevel?: number | undefined;
    destination: PathLike;
}

export interface DecompressOptions {
    source: PathLike;
    destination: string;
    /** Options to pass down to tar-fs */
    options?: ExtractOptions | undefined;
}

export function compress(options: CompressOptions, cb: (error: Error | null) => void): void;

export function decompress(options: DecompressOptions, cb: (error: Error | null) => void): void;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/tar-fs](https://npmjs.com/package/@types/tar-fs)

# Credits
These definitions were written by [Mats Jun Larsen](https://github.com/junlarsen).

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