UNPKG

@clxrity/zip

Version:

A React zip utility library

14 lines (11 loc) 653 B
interface UnzipServerOptions { onEachFile?: (filePath: string) => void | Promise<void>; onComplete?: (extractedPaths: string[]) => void | Promise<void>; } declare function unzipFileServer(zipPath: string, extractTo: string, options?: UnzipServerOptions): Promise<void>; interface ZipServerOptions { onBeforeZip?: (paths: string[]) => Promise<string[]> | string[]; onAfterZip?: (outputPath: string) => void | Promise<void>; } declare function zipFilesServer(inputPaths: string[], outputPath: string, options?: ZipServerOptions): Promise<void>; export { type UnzipServerOptions, type ZipServerOptions, unzipFileServer, zipFilesServer };