MCPcopy Create free account
hub / github.com/SethGammon/Citadel / write

Function write

scripts/test-dashboard.js:21–24  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

19}
20
21function write(filePath, content) {
22 fs.mkdirSync(path.dirname(filePath), { recursive: true });
23 fs.writeFileSync(filePath, content);
24}
25
26function appendJsonl(filePath, entries) {
27 write(filePath, entries.map((entry) => JSON.stringify(entry)).join('\n') + '\n');

Callers 2

appendJsonlFunction · 0.70
test-dashboard.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected