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

Function readJsonFile

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

Source from the content-addressed store, hash-verified

21 * @param options Options for reading the file.
22 */
23export async function readJsonFile(path: string, options?: ReadFileOptions): Promise<any> {
24 return JSON.parse(await fs.promises.readFile(path, options) as string);
25}
26
27/**
28 * Read and parse a JSON file synchronously.

Callers 9

readFileFunction · 0.90
readFileFunction · 0.90
readFileFunction · 0.90
readFileFunction · 0.90
importAllMetaEditsFunction · 0.90
loadExecMappingsFileFunction · 0.90
readFileFunction · 0.90
readFileFunction · 0.90
parseExtensionFunction · 0.90

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected