Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/npm/node-semver
/ clean
Function
clean
functions/clean.js:4–7 ·
view source on GitHub ↗
(version, options)
Source
from the content-addressed store, hash-verified
2
3
const
parse = require(
'./parse'
)
4
const
clean = (version, options) => {
5
const
s = parse(version.trim().replace(/^[=v]+/,
''
), options)
6
return
s ? s.version : null
7
}
8
module.exports = clean
Callers
1
clean.js
File · 0.85
Calls
1
parse
Function · 0.85
Tested by
no test coverage detected