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

Function write

__tests__/nextjs-proxy.test.ts:199–203  ·  view source on GitHub ↗
(dir: string, rel: string, content: string)

Source from the content-addressed store, hash-verified

197 });
198
199 function write(dir: string, rel: string, content: string): void {
200 const full = path.join(dir, rel);
201 fs.mkdirSync(path.dirname(full), { recursive: true });
202 fs.writeFileSync(full, content);
203 }
204
205 async function project(files: Record<string, string>): Promise<{ cg: CodeGraph; dir: string }> {
206 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-next-proxy-'));

Callers 2

projectFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected