MCPcopy
hub / github.com/zarazhangrui/follow-builders / fetchJSON

Function fetchJSON

scripts/prepare-digest.js:44–48  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

42// -- Fetch helpers -----------------------------------------------------------
43
44async function fetchJSON(url) {
45 const res = await fetch(url);
46 if (!res.ok) return null;
47 return res.json();
48}
49
50async function fetchText(url) {
51 const res = await fetch(url);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected