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

Function write

__tests__/sync-size-cap-shrink.test.ts:39–39  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

37 let dir: string;
38 let cg: CodeGraph;
39 const write = (rel: string, content: string) => fs.writeFileSync(path.join(dir, rel), content);
40 const importsOfUser = (): string[] => {
41 const ids = cg.getNodesInFile('user.ts').map((n) => n.id);
42 return cg.getOutgoingEdgesFrom(ids)

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected