UNPKG

tar-iterator

Version:

Extract contents from tar archive type using an iterator API using streams or paths. Use stream interface and pipe transforms to add decompression algorithms

13 lines (12 loc) 664 B
import { type FileAttributes, FileEntry, type Lock, type NoParamCallback } from 'extract-base-iterator'; import type { ExtractOptions } from './types.js'; export default class TarFileEntry extends FileEntry { private lock; private stream; constructor(attributes: FileAttributes, stream: NodeJS.ReadableStream, lock: Lock); create(dest: string, callback: NoParamCallback): void; create(dest: string, options: ExtractOptions, callback: NoParamCallback): void; create(dest: string, options?: ExtractOptions): Promise<boolean>; _writeFile(fullPath: string, _options: ExtractOptions, callback: NoParamCallback): void; destroy(): void; }