MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / readJsonFileSync

Function readJsonFileSync

src/shared/Util.ts:35–37  ·  view source on GitHub ↗
(path: string, options?: ReadFileOptions)

Source from the content-addressed store, hash-verified

33 * @param options Options for reading the file.
34 */
35export function readJsonFileSync(path: string, options?: ReadFileOptions): any {
36 return JSON.parse(fs.readFileSync(path, options) as string);
37}
38
39/**
40 * Remove the file extension of a filename

Callers 3

readOrCreateFileSyncFunction · 0.90
readFileSyncFunction · 0.90
readFileSyncFunction · 0.90

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected