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

Function write

__tests__/dead-code.test.ts:46–50  ·  view source on GitHub ↗
(root: string, rel: string, body: string)

Source from the content-addressed store, hash-verified

44let cg: CodeGraph;
45
46function write(root: string, rel: string, body: string): void {
47 const full = path.join(root, rel);
48 fs.mkdirSync(path.dirname(full), { recursive: true });
49 fs.writeFileSync(full, body);
50}
51
52function request(requestPath: string): Promise<{ status: number; body: string; type?: string }> {
53 return new Promise((resolve, reject) => {

Callers 1

dead-code.test.tsFile · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected