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

Function readPkgVersion

test/forceUpdateMidCopyWedge.test.js:84–86  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

82}
83
84function readPkgVersion(root) {
85 return JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8')).version;
86}
87
88function restoreGlobals() {
89 childProcess.execFileSync = origExecFileSync;

Callers 1

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected