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

Function write

__tests__/node-overload-spread.test.ts:23–26  ·  view source on GitHub ↗
(root: string, rel: string, body: string)

Source from the content-addressed store, hash-verified

21const MAX_OUTPUT_LENGTH = 15000;
22
23function write(root: string, rel: string, body: string): void {
24 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
25 fs.writeFileSync(path.join(root, rel), body);
26}
27
28async function indexed(root: string): Promise<{ cg: CodeGraph; handler: ToolHandler }> {
29 const cg = CodeGraph.initSync(root);

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected