MCPcopy Index your code
hub / github.com/PatrickJS/awesome-cursorrules / write

Function write

scripts/check-awesome-list.test.mjs:15–19  ·  view source on GitHub ↗
(root, filePath, content)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected