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

Function write

__tests__/sync-synthesis-interval.test.ts:33–37  ·  view source on GitHub ↗
(dir: string, rel: string, content: string)

Source from the content-addressed store, hash-verified

31const internals = (graph: CodeGraph) => graph as unknown as Internals;
32
33function write(dir: string, rel: string, content: string): void {
34 const full = path.join(dir, rel);
35 fs.mkdirSync(path.dirname(full), { recursive: true });
36 fs.writeFileSync(full, content);
37}
38
39/** A bus, a handler registered on it, and a service that emits: one event-emitter edge. */
40function fixture(dir: string): void {

Callers 2

fixtureFunction · 0.70
addRemovedEventFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected