MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / fetchText

Function fetchText

Support/SingleFileLibs/javascript/app.js:160–164  ·  view source on GitHub ↗
(url, opts = {})

Source from the content-addressed store, hash-verified

158 }
159
160 async function fetchText(url, opts = {}) {
161 const res = await fetch(url, opts);
162 if (!res.ok) throw new Error(`HTTP ${res.status} for ${url}`);
163 return res.text();
164 }
165
166 function rawUrl(ref, path) {
167 // ref can be branch, tag or SHA

Callers 3

fetchBriefForLibraryFunction · 0.85
fetchFileCachedFunction · 0.85
downloadAllZipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected