Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
const
{ readFileSync, statSync } = require(
'node:fs'
)
2
const
{ resolve } = require(
'node:path'
)
3
const
t = require(
'tap'
)
4
const
_mockNpm = require(
'../../fixtures/mock-npm'
)
Callers
nothing calls this directly
Calls
11
result
Function · 0.85
same
Method · 0.80
mockNpm
Function · 0.70
testComp
Function · 0.70
slice
Method · 0.65
require
Function · 0.50
readFileSync
Function · 0.50
resolve
Function · 0.50
statSync
Function · 0.50
test
Method · 0.45
exec
Method · 0.45
Tested by
no test coverage detected