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

Function isEvolverPackageJson

src/adapters/scripts/_runtimePaths.js:24–32  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

22const { spawnSync } = require('child_process');
23
24function isEvolverPackageJson(filePath) {
25 try {
26 const raw = fs.readFileSync(filePath, 'utf8');
27 const pkg = JSON.parse(raw);
28 return pkg && (pkg.name === '@evomap/evolver' || pkg.name === 'evolver');
29 } catch {
30 return false;
31 }
32}
33
34// Scan a "versions dir" used by Node version managers (NVM, fnm, Volta, asdf)
35// and append each `<versions-dir>/<version>/<subdir>/node_modules` to `out`.

Callers 1

findEvolverRootFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected