UNPKG

fast-extract

Version:

Extract contents from various archive types (tar, tar.bz2, tar.gz, tar.xz, tgz, zip)

11 lines (10 loc) 499 B
import { Transform, type TransformCallback, type TransformOptions } from 'stream'; import type { OptionsInternal } from '../../types.ts'; export default class ZipTransform extends Transform { private _iterator; private _callback; constructor(options?: OptionsInternal | TransformOptions<Transform>); _transform(chunk: unknown, _encoding: BufferEncoding, callback: TransformCallback): undefined; _flush(callback: TransformCallback): undefined; destroy(error?: Error): this; }