stdproject/frontend/node_modules/semver/functions/valid.js

9 lines
176 B
JavaScript
Raw Normal View History

2025-05-30 13:43:31 +08:00
'use strict'
const parse = require('./parse')
const valid = (version, options) => {
const v = parse(version, options)
return v ? v.version : null
}
module.exports = valid