diff options
Diffstat (limited to 'together/node_modules/semver/functions/valid.js')
-rw-r--r-- | together/node_modules/semver/functions/valid.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/together/node_modules/semver/functions/valid.js b/together/node_modules/semver/functions/valid.js new file mode 100644 index 0000000..f27bae1 --- /dev/null +++ b/together/node_modules/semver/functions/valid.js @@ -0,0 +1,6 @@ +const parse = require('./parse') +const valid = (version, options) => { + const v = parse(version, options) + return v ? v.version : null +} +module.exports = valid |