semver
Semantic version string parser. More information: https://github.com/npm/node-semver.
- Check if a version string respects the semantic versioning format (prints an empty string if it does not match):
semver
- Convert a version string to the semantic versioning format:
semver --coerce
- Test if
1.2.3matches the^1.0range (prints an empty string if it does not match):
semver --range ""
- Test with multiple ranges:
semver --range "" ""
- Test multiple version strings and return only the ones that match:
semver --range ""
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
