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

1.0.5 • Public • Published

Installation

npm install --save @types/targz

Summary

This package contains type definitions for targz (https://github.com/miskun/targz#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/targz.

/// <reference types="node" />

import * as tar from "tar-fs";
import * as zlib from "zlib";

export interface CompressOptions {
    src: string;
    dest: string;
    tar?: tar.PackOptions | undefined;
    gz?: zlib.ZlibOptions | undefined;
}

export interface DecompressOptions {
    src: string;
    dest: string;
    tar?: tar.ExtractOptions | undefined;
    gz?: zlib.ZlibOptions | undefined;
}

export function compress(
    opts?: CompressOptions,
    callback?: (error?: Error | string | null | undefined) => void,
): void;

export function decompress(
    opts?: DecompressOptions,
    callback?: (error?: Error | string | null | undefined) => void,
): void;

Additional Details

Credits

These definitions were written by Alexander Curtis.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.42,224ts4.9
1.0.42,224ts4.5
1.0.42,224ts4.6
1.0.42,224ts4.7
1.0.42,224ts4.8
1.0.51,328ts5.3
1.0.51,328ts5.4
1.0.51,328ts5.5
1.0.51,328ts5.6
1.0.51,328ts5.7
1.0.51,328ts5.8
1.0.51,328ts5.2
1.0.51,328ts5.0
1.0.51,328ts5.1
1.0.51,328latest
1.0.51,328ts5.9
1.0.11,087ts4.0
1.0.11,087ts4.2
1.0.11,087ts4.1
1.0.11,087ts3.9
1.0.11,087ts3.8
1.0.11,087ts3.7
1.0.11,087ts3.6
1.0.0676ts3.5
1.0.0676ts2.6
1.0.0676ts2.7
1.0.0676ts2.8
1.0.0676ts2.9
1.0.0676ts3.0
1.0.0676ts3.1
1.0.0676ts3.2
1.0.0676ts3.3
1.0.0676ts3.4
1.0.20ts4.4
1.0.20ts4.3

Version History

VersionDownloads (Last 7 Days)Published
1.0.51,328
1.0.42,224
1.0.30
1.0.20
1.0.11,087
1.0.0676

Package Sidebar

Install

npm i @types/targz

Weekly Downloads

5,315

Version

1.0.5

License

MIT

Unpacked Size

4.06 kB

Total Files

5

Last publish

Collaborators

  • types