Test a version against a semver range
Will 1.4.2 satisfy ^1.2.0? Ask before the package manager answers for you.
Tools used in this guide
The job
npm ranges are a small language: ^1.2.0, ~1.2.0, >=1.2 <2, 1.2.x - 2.0, || unions. The checker answers satisfy/not and shows which clause matched.
Version plus range
Enter a version and a range. Caret allows compatible changes (1.x for majors ≥1), tilde the patch line; hyphen and comparator sets work too.
Worked example
1.4.2 satisfies ^1.2.0, ~1.4.0, and 1.x but not ~1.2.0 or ^0.9. 2.0.0-beta.1 matches only when the range names a prerelease.
Where it stops
A documented subset: no build metadata in matching, no 'latest' or dist-tags, and prerelease matching follows npm's rule (explicit only).