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

Function write

scripts/test-stack-plan.js:17–20  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

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

Callers 1

test-stack-plan.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected