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

Function write

__tests__/php-namespace-alias-instantiation.test.ts:26–30  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

24 });
25
26 const write = (file: string, source: string) => {
27 const target = path.join(dir, file);
28 fs.mkdirSync(path.dirname(target), { recursive: true });
29 fs.writeFileSync(target, source);
30 };
31
32 const firstName = (ns: string) => `<?php
33namespace ${ns};

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected