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

Method forEach

src/pkg/utils/jszip-x.ts:97–101  ·  view source on GitHub ↗
(callback: (relativePath: string, file: JSZippZipObject) => void)

Source from the content-addressed store, hash-verified

95 }
96
97 forEach(callback: (relativePath: string, file: JSZippZipObject) => void): void {
98 for (const [path, file] of Object.entries(this.files)) {
99 callback(path, file);
100 }
101 }
102
103 async loadAsync(content: InputFileFormat): Promise<this> {
104 const reader: ZipRandomAccessReader = await openZip(await toZipSource(await content), { pathMode: "unsafe" });

Callers 15

onloadFunction · 0.80
gm_value_test.jsFile · 0.80
hFunction · 0.80
hFunction · 0.80
setAllButtonsDisabledFunction · 0.80
sandbox_test.jsFile · 0.80
eraseMethod · 0.80
determineFilenameMethod · 0.80
postMessageMethod · 0.80
connectMethod · 0.80

Calls 2

callbackFunction · 0.85
entriesMethod · 0.80

Tested by

no test coverage detected