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

Function readFile

prune-globals.js:13–15  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

11
12// Silly wrapper function to read a file and return its content
13function readFile(filePath) {
14 return fs.readFileSync(filePath, "utf8");
15}
16
17// Function to write content to a file
18function writeFile(filePath, content) {

Callers 2

processFilesFunction · 0.85
menus.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected