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

Function writeText

scripts/i18n-contract.test.mjs:32–35  ·  view source on GitHub ↗
(relativePath, content)

Source from the content-addressed store, hash-verified

30}
31
32function writeText(relativePath, content) {
33 fs.mkdirSync(path.dirname(path.join(root, relativePath)), { recursive: true });
34 fs.writeFileSync(path.join(root, relativePath), content, 'utf8');
35}
36
37function runI18nAudit(args = []) {
38 return spawnSync(process.execPath, ['scripts/i18n-audit.mjs', ...args], {

Callers 1

withTemporaryTextFileFunction · 0.70

Calls 2

dirnameMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected