MCPcopy Create free account
hub / github.com/anomalyco/models.dev / write

Function write

packages/core/test/generate.test.ts:18–22  ·  view source on GitHub ↗
(root: string, file: string, content: string)

Source from the content-addressed store, hash-verified

16}
17
18async function write(root: string, file: string, content: string) {
19 const filePath = path.join(root, file);
20 await mkdir(path.dirname(filePath), { recursive: true });
21 await Bun.write(filePath, content);
22}
23
24function stable(value: unknown): string {
25 if (Array.isArray(value)) {

Callers 1

generate.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected