MCPcopy Create free account
hub / github.com/Consensys/doc.linea / writeFile

Function writeFile

scripts/agent-docs/generate.test.js:13–17  ·  view source on GitHub ↗
(root, filePath, content)

Source from the content-addressed store, hash-verified

11} = require("./lib");
12
13function writeFile(root, filePath, content) {
14 const target = path.join(root, filePath);
15 fs.mkdirSync(path.dirname(target), { recursive: true });
16 fs.writeFileSync(target, content);
17}
18
19function createFixture() {
20 const root = fs.mkdtempSync(path.join(os.tmpdir(), "linea-agent-docs-"));

Callers 2

createFixtureFunction · 0.85
generate.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected