MCPcopy Create free account
hub / github.com/vercel/vercel / readJsonFileSync

Function readJsonFileSync

packages/cli-config/src/cli-config.ts:63–66  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

61}
62
63function readJsonFileSync(filePath: string): unknown {
64 const content = fs.readFileSync(filePath, 'utf8').replace(/^\uFEFF/, '');
65 return JSON.parse(content);
66}
67
68function writeJsonFileSync(
69 filePath: string,

Callers 2

readConfigFileFunction · 0.85
readAuthFileConfigFunction · 0.85

Calls 3

replaceMethod · 0.80
readFileSyncMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected