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

Function readNodeIdFile

src/gep/cliContracts.js:406–413  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

404}
405
406function readNodeIdFile(filePath) {
407 try {
408 if (!fs.existsSync(filePath)) return '';
409 return fs.readFileSync(filePath, 'utf8').trim();
410 } catch (_) {
411 return '';
412 }
413}
414
415function osHomedir() {
416 try { return require('os').homedir(); } catch (_) { return ''; }

Callers 1

nonPersistedNodeIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected