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

Function write

__tests__/php-property-receiver-resolution.test.ts:42–46  ·  view source on GitHub ↗
(rel: string, body: string)

Source from the content-addressed store, hash-verified

40 afterEach(() => { fs.rmSync(dir, { recursive: true, force: true }); });
41
42 const write = (rel: string, body: string) => {
43 const p = path.join(dir, rel);
44 fs.mkdirSync(path.dirname(p), { recursive: true });
45 fs.writeFileSync(p, body);
46 };
47
48 const load = async () => {
49 const cg = await CodeGraph.init(dir, { silent: true });

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected