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

Function write

__tests__/owning-package.test.ts:30–34  ·  view source on GitHub ↗
(root: string, file: string, content: string)

Source from the content-addressed store, hash-verified

28vi.setConfig({ testTimeout: 60_000, hookTimeout: 60_000 });
29
30function write(root: string, file: string, content: string): void {
31 const full = path.join(root, file);
32 fs.mkdirSync(path.dirname(full), { recursive: true });
33 fs.writeFileSync(full, content);
34}
35
36function manifest(root: string, file: string, value: unknown): void {
37 write(root, file, JSON.stringify(value));

Callers 2

manifestFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected