MCPcopy Create free account
hub / github.com/nodejs/node / version.js

File version.js

deps/npm/test/lib/commands/version.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const { readFileSync, statSync } = require('node:fs')
2const { resolve } = require('node:path')
3const t = require('tap')
4const _mockNpm = require('../../fixtures/mock-npm')

Callers

nothing calls this directly

Calls 11

resultFunction · 0.85
sameMethod · 0.80
mockNpmFunction · 0.70
testCompFunction · 0.70
sliceMethod · 0.65
requireFunction · 0.50
readFileSyncFunction · 0.50
resolveFunction · 0.50
statSyncFunction · 0.50
testMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected