MCPcopy Index your code
hub / github.com/EvoMap/evolver / _readInstallPackageVersion

Function _readInstallPackageVersion

src/forceUpdate.js:415–422  ·  view source on GitHub ↗
(installRoot)

Source from the content-addressed store, hash-verified

413}
414
415function _readInstallPackageVersion(installRoot) {
416 try {
417 var pkg = JSON.parse(fs.readFileSync(path.join(installRoot, 'package.json'), 'utf8'));
418 return pkg && pkg.version ? String(pkg.version) : '';
419 } catch (_) {
420 return '';
421 }
422}
423
424function _writeForceUpdateRecoveryJournal(backupRoot, requiredVersion, previousVersion) {
425 var journal = {

Callers 1

_installDownloadedTreeFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected