MCPcopy
hub / github.com/shareAI-lab/Kode-CLI / readPackageJson

Function readPackageJson

cli-acp.js:42–49  ·  view source on GitHub ↗
(packageRoot)

Source from the content-addressed store, hash-verified

40}
41
42function readPackageJson(packageRoot) {
43 try {
44 const p = path.join(packageRoot, 'package.json')
45 return JSON.parse(fs.readFileSync(p, 'utf8'))
46 } catch {
47 return null
48 }
49}
50
51function run(cmd, args) {
52 const result = spawnSync(cmd, args, {

Callers 1

mainFunction · 0.70

Calls 2

joinMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected