MCPcopy Create free account
hub / github.com/MirrowApp/mirrow / writeFile

Function writeFile

packages/cli/test/cli.test.js:18–21  ·  view source on GitHub ↗
(target, contents)

Source from the content-addressed store, hash-verified

16}
17
18async function writeFile(target, contents) {
19 await fs.mkdir(path.dirname(target), { recursive: true });
20 await fs.writeFile(target, contents, "utf8");
21}
22
23async function waitUntil(predicate, timeout = 2000, interval = 50) {
24 const start = Date.now();

Callers 1

cli.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected