semver Command Examples

Semantic version string parser. More information: https://github.com/npm/node-semver.

semver {{1.2}}

semver --coerce {{1.2}}

semver {{1.2.3}} --range "{{^1.0}}"

semver {{1.2.3}} --range "{{>=1.0}}" "{{<2.0}}"

semver {{1.2.3}} {{2.0.0}} --range "{{^1.0}}"