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

Function countLines

src/webui/observer/personality.js:35–41  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

33}
34
35function countLines(filePath) {
36 try {
37 return fs.readFileSync(filePath, 'utf8').split('\n').filter(Boolean).length;
38 } catch {
39 return 0;
40 }
41}
42
43module.exports = { getPersonality, getMemoryGraph };

Callers 1

getMemoryGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected