Semver Range Validator

Check if a semantic version satisfies an npm-compatible range

Version
Valid semver
Range
Expands to: >=1.0.0 <2.0.0-0

Version satisfies range

1.2.3 matches ^1.0.0

Common Range Examples
Batch Validator

Range Syntax Reference

^1.2.3>=1.2.3 <2.0.0
~1.2.3>=1.2.3 <1.3.0
1.x>=1.0.0 <2.0.0
*Any version
1.2.3 - 2.3.4>=1.2.3 <=2.3.4
>=1.0.0 <2.0.0Explicit range
1.2.3 || 2.0.0Union of ranges
~0.0>=0.0.0 <0.1.0