MCPcopy Index your code
hub / github.com/adobe/react-spectrum / readJsonSync

Function readJsonSync

scripts/compareAPIs.js:48–54  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

46});
47
48function readJsonSync(filePath) {
49 try {
50 return JSON.parse(fs.readFileSync(filePath, 'utf8'));
51 } catch (error) {
52 throw new Error(`Failed to read JSON from ${filePath}: ${error.message}`);
53 }
54}
55
56/**
57 * This takes the json files generated by the buildBranchAPI and buildPublishedAPI and

Callers 2

compareFunction · 0.70
getAPIFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected