MCPcopy Index your code
hub / github.com/remix-run/react-router / writeJson

Function writeJson

scripts/utils/fs.ts:40–42  ·  view source on GitHub ↗
(filename: string, data: any)

Source from the content-addressed store, hash-verified

38}
39
40export function writeJson(filename: string, data: any): void {
41 writeFile(filename, JSON.stringify(data, null, 2) + "\n");
42}

Callers 1

updatePackageJsonFunction · 0.90

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…