MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / readVersion

Function readVersion

scripts/npm-shim.js:168–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168function readVersion() {
169 try {
170 return require(path.join(__dirname, 'package.json')).version;
171 } catch (e) {
172 fail('could not read this package\'s version to locate a matching release.');
173 }
174}
175
176// GET with manual redirect following (GitHub release URLs redirect to a CDN).
177function download(url, dest, redirectsLeft) {

Callers 1

selfHealBundleFunction · 0.85

Calls 2

failFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected