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
12 lines (11 loc) • 610 B
TypeScript
import { type FileAttributes, FileEntry, type NoParamCallback } from 'extract-base-iterator';
import type Lock from './lib/Lock.js';
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, options: ExtractOptions | NoParamCallback, callback: NoParamCallback): undefined | Promise<boolean>;
_writeFile(fullPath: string, _options: ExtractOptions, callback: NoParamCallback): undefined;
destroy(): void;
}