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

Function _readJson

src/adapters/scripts/evolver-session-start.js:17–24  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

15const lockPaths = require('./_lockPaths');
16
17function _readJson(file) {
18 try {
19 if (!file || !fs.existsSync(file)) return null;
20 return JSON.parse(fs.readFileSync(file, 'utf8'));
21 } catch (_) {
22 return null;
23 }
24}
25
26function _isLoopbackProxyUrl(value) {
27 const raw = String(value || '').trim();

Callers 2

_proxyExpectedFunction · 0.85
_proxyHealthyIfExpectedFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected