MCPcopy
hub / github.com/1j01/jspaint / writeFile

Function writeFile

prune-globals.js:18–21  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

16
17// Function to write content to a file
18function writeFile(filePath, content) {
19 console.log("Writing file", filePath);
20 fs.writeFileSync(filePath, content, "utf8");
21}
22
23// function escapeRegExp(string) {
24// return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string

Callers 2

processFilesFunction · 0.85
menus.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected