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

Function writeJsonFile

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

Source from the content-addressed store, hash-verified

232 * config no longer has that side effect.
233 */
234export function writeJsonFile(filePath: string, data: Record<string, any>): void {
235 backupUnparseableJson(filePath);
236 atomicWriteFileSync(filePath, JSON.stringify(data, null, 2) + '\n');
237}
238
239/**
240 * 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
uninstallMethod · 0.90
writeMcpEntryFunction · 0.90

Calls 2

backupUnparseableJsonFunction · 0.85
atomicWriteFileSyncFunction · 0.85

Tested by

no test coverage detected