MCPcopy
hub / github.com/PatrickJS/awesome-cursorrules / readUserJson

Function readUserJson

scripts/check-pr-author.mjs:92–98  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

90}
91
92function readUserJson(filePath) {
93 if (!existsSync(filePath)) {
94 throw new Error(`User JSON file does not exist: ${filePath}`);
95 }
96
97 return JSON.parse(readFileSync(filePath, "utf8"));
98}
99
100async function fetchGitHubUser(username) {
101 const headers = {

Callers 1

resolveUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected