MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / readVersion

Function readVersion

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

Source from the content-addressed store, hash-verified

155}
156
157function readVersion() {
158 try {
159 return require(path.join(__dirname, 'package.json')).version;
160 } catch (e) {
161 fail('could not read this package\'s version to locate a matching release.');
162 }
163}
164
165// GET with manual redirect following (GitHub release URLs redirect to a CDN).
166function download(url, dest, redirectsLeft) {

Callers 1

selfHealBundleFunction · 0.85

Calls 2

joinMethod · 0.80
failFunction · 0.70

Tested by

no test coverage detected