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

Function readVersion

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

Source from the content-addressed store, hash-verified

179}
180
181function readVersion() {
182 try {
183 return require(path.join(__dirname, 'package.json')).version;
184 } catch (e) {
185 fail('could not read this package\'s version to locate a matching release.');
186 }
187}
188
189// GET with manual redirect following (GitHub release URLs redirect to a CDN).
190function download(url, dest, redirectsLeft) {

Callers 1

selfHealBundleFunction · 0.85

Calls 2

failFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected