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

Function write

__tests__/codeigniter.test.ts:110–114  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

108 let cg: CodeGraph;
109
110 const write = (rel: string, content: string): void => {
111 const full = path.join(dir, rel);
112 fs.mkdirSync(path.dirname(full), { recursive: true });
113 fs.writeFileSync(full, content);
114 };
115
116 const calls = (from: string, inFile: string): string[] => {
117 const node = cg.getNodesInFile(inFile).find((n) => n.name === from && n.kind === 'method');

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected