MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / writeJsonFile

Function writeJsonFile

src/installer/targets/shared.ts:100–102  ·  view source on GitHub ↗
(filePath: string, data: Record<string, any>)

Source from the content-addressed store, hash-verified

98 * existing target had — preserves diff-friendly file shape.
99 */
100export function writeJsonFile(filePath: string, data: Record<string, any>): void {
101 atomicWriteFileSync(filePath, JSON.stringify(data, null, 2) + '\n');
102}
103
104/**
105 * Compare two JSON values for deep equality, ignoring key order.

Callers 15

uninstallMethod · 0.90
writeMcpEntryFunction · 0.90
uninstallMethod · 0.90
writeMcpEntryFunction · 0.90
cleanupLegacyLocalMcpFunction · 0.90
writePermissionsEntryFunction · 0.90
writePromptHookEntryFunction · 0.90
uninstallMethod · 0.90
writeMcpEntryFunction · 0.90
writeMcpEntryFunction · 0.90
cleanupLegacyEntryFunction · 0.90

Calls 1

atomicWriteFileSyncFunction · 0.85

Tested by

no test coverage detected