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

0.3.4 • 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

/// <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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Kyle Hensel.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/unzip-stream

Weekly Downloads

39,693

Version

0.3.4

License

MIT

Unpacked Size

4.05 kB

Total Files

5

Last publish

Collaborators

  • types