@types/node-targz
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

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

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

Credits

These definitions were written by Mats Jun Larsen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/node-targz

Weekly Downloads

317

Version

0.2.4

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • types