MCPcopy
hub / github.com/MisterBooo/LeetCodeAnimation / readFile

Function readFile

tools/scripts/build-readme.js:116–118  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

114const check = args.has("--check");
115
116function readFile(file) {
117 return fs.existsSync(file) ? fs.readFileSync(file, "utf8") : "";
118}
119
120function inject(content, target) {
121 const s = content.indexOf(target.start);

Callers 1

build-readme.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected