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

Function write

__tests__/react-router.test.ts:67–71  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

65 let cg: CodeGraph;
66
67 function write(rel: string, content: string): void {
68 const full = path.join(tmpDir, rel);
69 fs.mkdirSync(path.dirname(full), { recursive: true });
70 fs.writeFileSync(full, content);
71 }
72
73 beforeAll(async () => {
74 await initGrammars();

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected