(filePath)
| 90 | } |
| 91 | |
| 92 | function 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 | |
| 100 | async function fetchGitHubUser(username) { |
| 101 | const headers = { |