MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / ZipFileReader

Class ZipFileReader

packages/filesystem/zip/rw.ts:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import type { FileCreateOptions, FileReader, FileWriter } from "../filesystem";
3
4export class ZipFileReader implements FileReader {
5 zipObject: JSZipObject;
6
7 constructor(zipObject: JSZipObject) {
8 this.zipObject = zipObject;
9 }
10
11 read(type?: "string" | "blob"): Promise<string | Blob> {
12 return this.zipObject.async(type || "string");
13 }
14}
15
16export class ZipFileWriter implements FileWriter {
17 zip: JSZipFile;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected