UNPKG

@types/unzip-stream

Version:
41 lines (31 loc) 1.37 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unzip-stream/index.d.ts) ````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](https://npmjs.com/package/@types/node) # Credits These definitions were written by [Kyle Hensel](https://github.com/k-yle).