zip-iterator
Version:
Extract contents from zip archive type using an iterator API using streams or paths. Use stream interface and pipe transforms to add decompression algorithms
14 lines (13 loc) • 472 B
TypeScript
import BaseIterator from 'extract-base-iterator';
import type { Entry, ZipIteratorOptions } from './types.js';
export default class ZipIterator extends BaseIterator<Entry> {
private lock;
private extract;
private centralDir;
private tempPath;
private streamingMode;
constructor(source: string | NodeJS.ReadableStream, options?: ZipIteratorOptions);
private bufferStreamAndStart;
private startStreaming;
end(err?: Error | null): void;
}