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

Function readVersion

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

Source from the content-addressed store, hash-verified

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

Callers 1

selfHealBundleFunction · 0.85

Calls 2

failFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected