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

    0.3.1 • Public • Published

    Installation

    npm install --save @types/unzip-stream

    Summary

    This package contains type definitions for unzip-stream (https://github.com/mhr3/unzip-stream#readme).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unzip-stream.

    index.d.ts

    // Type definitions for unzip-stream 0.3
    // Project: https://github.com/mhr3/unzip-stream#readme
    // Definitions by: Kyle Hensel <https://github.com/k-yle>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    import { PassThrough } from 'stream';
    
    export function Extract(options: {
        path: string;
        /* used to decode non-utf8 file names in the archive. If not specified a fallback will be used. */
        decodeString?: ((buffer: Buffer) => string) | undefined;
    }): NodeJS.WritableStream;
    
    export function Parse(options?: {
        /* used to decode non-utf8 file names in the archive. If not specified a fallback will be used. */
        decodeString?: ((buffer: Buffer) => string) | undefined;
    }): NodeJS.WritableStream & NodeJS.ReadableStream;
    
    export interface Entry extends PassThrough {
        path: string;
        type: 'Directory' | 'File';
        size: number;
        autodrain: () => void;
    }

    Additional Details

    • Last updated: Fri, 02 Jul 2021 18:04:50 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by Kyle Hensel.

    Keywords

    none

    Install

    npm i @types/unzip-stream

    DownloadsWeekly Downloads

    8,740

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    4.52 kB

    Total Files

    4

    Last publish

    Collaborators

    • types