MCPcopy Create free account
hub / github.com/PatrickJS/awesome-cursorrules / write

Function write

scripts/check-repo-security.test.mjs:14–18  ·  view source on GitHub ↗
(root, filePath, content)

Source from the content-addressed store, hash-verified

12}
13
14function write(root, filePath, content) {
15 const fullPath = join(root, filePath);
16 mkdirSync(dirname(fullPath), { recursive: true });
17 writeFileSync(fullPath, content);
18}
19
20function run(root, args = []) {
21 return spawnSync(process.execPath, [scriptPath, "--root", root, ...args], {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected