MCPcopy Create free account
hub / github.com/PawanOsman/OpenCursor / writeJson

Function writeJson

src/integrations/externalHooks.ts:78–81  ·  view source on GitHub ↗
(file: string, data: any)

Source from the content-addressed store, hash-verified

76}
77
78function writeJson(file: string, data: any): void {
79 fs.mkdirSync(path.dirname(file), { recursive: true });
80 fs.writeFileSync(file, JSON.stringify(data, null, 2) + "\n", "utf8");
81}
82
83const isCursor = (s: HookSource) => s.startsWith("cursor");
84

Callers 2

saveExternalHookFunction · 0.85
deleteExternalHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected