MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / async

Method async

src/pkg/utils/jszip-x.ts:54–59  ·  view source on GitHub ↗
(type: "string" | "blob" = "string")

Source from the content-addressed store, hash-verified

52 async async(type: "string" | "blob"): Promise<string | Blob>;
53
54 async async(type: "string" | "blob" = "string"): Promise<string | Blob> {
55 if (type === "blob") {
56 return this.toBlob();
57 }
58 return new TextDecoder().decode(await this.toUint8Array());
59 }
60
61 getContent() {
62 return this.content;

Callers 2

readMethod · 0.80
parseSkillZipFunction · 0.80

Calls 2

toBlobMethod · 0.95
toUint8ArrayMethod · 0.95

Tested by

no test coverage detected