MCPcopy Create free account
hub / github.com/remix-run/react-router / readJson

Function readJson

scripts/utils/fs.ts:36–38  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

34}
35
36export function readJson(filename: string): any {
37 return JSON.parse(readFile(filename));
38}
39
40export function writeJson(filename: string, data: any): void {
41 writeFile(filename, JSON.stringify(data, null, 2) + "\n");

Callers 5

parsePackageChangesFunction · 0.90
parseAllChangeFilesFunction · 0.90
updatePackageJsonFunction · 0.90
getUnpublishedPackagesFunction · 0.90
mainFunction · 0.90

Calls 2

readFileFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected