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

Function write

__tests__/cfml-inheritance-resolution.test.ts:30–34  ·  view source on GitHub ↗
(rel: string, body: string)

Source from the content-addressed store, hash-verified

28 afterEach(() => { fs.rmSync(dir, { recursive: true, force: true }); });
29
30 const write = (rel: string, body: string) => {
31 const p = path.join(dir, rel);
32 fs.mkdirSync(path.dirname(p), { recursive: true });
33 fs.writeFileSync(p, body);
34 };
35
36 const load = async () => {
37 const cg = await CodeGraph.init(dir, { silent: true });

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected