emulators
Version:
Emulators (dos) with standartized API
17 lines (16 loc) • 637 B
TypeScript
export default class LibZip {
module: any;
private home;
constructor(module: any, home?: string);
zipFromFs(changedAfterMs?: number): Promise<Uint8Array>;
zipToFs(zipArchive: Uint8Array, path?: string, filter?: string): Promise<void>;
writeFile(file: string, body: ArrayBuffer | Uint8Array | string): void;
readFile(file: string, encoding?: "binary" | "utf8"): Promise<string | Uint8Array>;
exists(file: string): boolean;
destroy(): any;
private normalizeFilename;
private createPath;
private chdirToHome;
private chdir;
zipAddFile(archive: string, file: string): Promise<void>;
}