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.