0.3.4 • Published 1 year ago
@types/unzip-stream v0.3.4
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.