MCPcopy Index your code
hub / github.com/node-modules/utility / readJSONSync

Function readJSONSync

src/json.ts:13–15  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

11}
12
13export function readJSONSync<T = any>(filepath: string): T {
14 return JSON.parse(readFileSync(filepath, 'utf8')) as T;
15}
16
17export interface JSONStringifyOptions {
18 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…