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

Function write

__tests__/jsx-render-outside-function.test.ts:28–32  ·  view source on GitHub ↗
(rel: string, body: string)

Source from the content-addressed store, hash-verified

26 });
27
28 const write = (rel: string, body: string) => {
29 const p = path.join(dir, rel);
30 fs.mkdirSync(path.dirname(p), { recursive: true });
31 fs.writeFileSync(p, body);
32 };
33
34 /** Every jsx-render edge, as `source kind:name@file -> target name@file`. */
35 async function renders(): Promise<string[]> {

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected