MCPcopy Index your code
hub / github.com/darkreader/darkreader / loadAsText

Function loadAsText

src/utils/network.ts:50–53  ·  view source on GitHub ↗
(url: string, mimeType?: string, origin?: string)

Source from the content-addressed store, hash-verified

48}
49
50export async function loadAsText(url: string, mimeType?: string, origin?: string): Promise<string> {
51 const response = await getOKResponse(url, mimeType, origin);
52 return await response.text();
53}

Callers 1

loadTextFunction · 0.90

Calls 1

getOKResponseFunction · 0.85

Tested by

no test coverage detected