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

Function write

scripts/test-pr-ready.js:15–18  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

13} = require('./pr-ready');
14
15function write(filePath, content) {
16 fs.mkdirSync(path.dirname(filePath), { recursive: true });
17 fs.writeFileSync(filePath, content, 'utf8');
18}
19
20function withTempProject(run) {
21 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-pr-ready-'));

Callers 1

test-pr-ready.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected