UNPKG

fast-extract

Version:

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

10 lines (9 loc) 511 B
import { Transform } from 'extract-base-iterator'; import type { TransformCallback, TransformOptions, Transform as TransformT } from 'stream'; import type { OptionsInternal, Progress } from '../../types.js'; export default class EntryProgressTransform extends Transform { private progress; constructor(options: OptionsInternal | TransformOptions<TransformT>); _transform(entry: Progress, encoding: BufferEncoding, callback: TransformCallback): void; _flush(callback: TransformCallback): void; }