source:
frontend/node_modules/semver/functions/valid.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 176 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | 'use strict' |
| 2 | ||
| 3 | const parse = require('./parse') | |
| 4 | const valid = (version, options) => { | |
| 5 | const v = parse(version, options) | |
| 6 | return v ? v.version : null | |
| 7 | } | |
| 8 | module.exports = valid |
Note:
See TracBrowser
for help on using the repository browser.
