fast-extract
Version:
Extract contents from various archive types (tar, tar.bz2, tar.gz, tar.xz, tgz, zip)
12 lines (11 loc) • 577 B
TypeScript
import type { TransformCallback, TransformOptions, Transform as TransformT } from 'stream';
import { Transform } from '../../compat/stream.ts';
import type { OptionsInternal } from '../../types.ts';
export default class WriteFileTransform extends Transform {
private tempPath;
private stream;
constructor(dest: string, options?: OptionsInternal | TransformOptions<TransformT>);
_transform(chunk: unknown, encoding: BufferEncoding, callback: TransformCallback): undefined;
_flush(callback: TransformCallback): undefined;
destroy(_error?: Error): this;
}