MCPcopy Create free account
hub / github.com/MigoXLab/coderio / readJsonFile

Function readJsonFile

src/cli/val.ts:18–21  ·  view source on GitHub ↗
(absolutePath: string)

Source from the content-addressed store, hash-verified

16};
17
18function readJsonFile<T>(absolutePath: string): T {
19 const raw = fs.readFileSync(absolutePath, 'utf-8');
20 return JSON.parse(raw) as T;
21}
22
23/**
24 * Register the 'validate' CLI command.

Callers 1

registerValidateCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected