MCPcopy
hub / github.com/npm/node-semver / valid

Function valid

functions/valid.js:4–7  ·  view source on GitHub ↗
(version, options)

Source from the content-addressed store, hash-verified

2
3const parse = require('./parse')
4const valid = (version, options) => {
5 const v = parse(version, options)
6 return v ? v.version : null
7}
8module.exports = valid

Callers 2

valid.jsFile · 0.85
coerce.jsFile · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected