0.3.5 • Published 6 months ago

@types/tar-js v0.3.5

Weekly downloads
24
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/tar-js

Summary

This package contains type definitions for tar-js (https://github.com/beatgammit/tar-js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tar-js.

index.d.ts

// Type definitions for tar-js 0.3
// Project: https://github.com/beatgammit/tar-js
// Definitions by: Narazaka <https://github.com/Narazaka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare class Tar {
    written: number;
    out: Uint8Array;
    constructor(recordsPerBlock?: number);
    append(filepath: string, input: string | Uint8Array, opts?: Tar.TarOptions, callback?: (out: Uint8Array) => any): Uint8Array;
    append(filepath: string, input: string | Uint8Array, callback?: (out: Uint8Array) => any): Uint8Array;
    clear(): void;
}

declare namespace Tar {
    interface TarOptions {
        mode?: number | undefined;
        mtime?: number | undefined;
        uid?: number | undefined;
        gid?: number | undefined;
        owner?: string | undefined;
        group?: string | undefined;
    }
}

export = Tar;

Additional Details

  • Last updated: Thu, 16 Dec 2021 22:32:08 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Narazaka.

0.3.5

6 months ago

0.3.4

7 months ago

0.3.3

8 months ago

0.3.2

2 years ago

0.3.1

3 years ago

0.3.0

3 years ago