npm semver range checker

Type a range from package.json (^1.2.3, ~1.2.3, 1.x, >=1.0.0 <2.0.0, ||) and see exactly which versions it accepts. Load the real version list of any npm package, or paste your own.

Try:
Expands to
>=1.2.3 <2.0.0-0
  • at least 1.2.3, below 2.0.0, and none of its pre-releases
Highest accepted version: 1.9.9 · 4 of 9 versions accepted
2.0.02.0.0-rc.11.9.91.3.01.2.41.2.31.2.3-beta.21.2.01.1.9

How npm reads a range

Logic written to the node-semver 7 rules used by npm (strict mode, includePrerelease off) and checked against the semver package before release. Version lists come straight from registry.npmjs.org in your browser; nothing is sent to VersionDude.

A range floats. Your build machine should not.

A caret lets the next install pick a newer version; only the lockfile and the machine that runs npm ci keep builds reproducible. Infomaniak, a Swiss, privacy-respecting provider, offers VPS and cloud servers to run your own build and CI machines.

See Infomaniak CloudAffiliate link

Go further