UNPKG

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

11 lines (10 loc) 572 B
import { type FileAttributes, FileEntry, type NoParamCallback } from 'extract-base-iterator'; import type { ExtractOptions, LockT, ZipFile } from './types.js'; export default class ZipFileEntry extends FileEntry { private lock; private entry; constructor(attributes: FileAttributes, entry: ZipFile, lock: LockT); create(dest: string, options: ExtractOptions | NoParamCallback, callback: NoParamCallback): undefined | Promise<boolean>; _writeFile(fullPath: string, _options: ExtractOptions, callback: NoParamCallback): undefined; destroy(): void; }