MCPcopy Create free account
hub / github.com/EvoMap/evolver / _readFileSafe

Function _readFileSafe

src/gep/localStateAwareness.js:22–29  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

20];
21
22function _readFileSafe(filePath) {
23 try {
24 if (!fs.existsSync(filePath)) return null;
25 return fs.readFileSync(filePath, 'utf8').trim();
26 } catch (_) {
27 return null;
28 }
29}
30
31function _readJsonSafe(filePath) {
32 try {

Callers 1

captureNodeIdentityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected