MCPcopy Create free account
hub / github.com/GCWing/BitFun / writeText

Function writeText

scripts/audit-theme-colors.test.mjs:54–57  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

52}
53
54function writeText(filePath, content) {
55 fs.mkdirSync(path.dirname(filePath), { recursive: true });
56 fs.writeFileSync(filePath, content, 'utf8');
57}
58
59function readJson(filePath) {
60 return JSON.parse(fs.readFileSync(filePath, 'utf8'));

Callers 2

createFixtureFunction · 0.70

Calls 1

dirnameMethod · 0.80

Tested by

no test coverage detected