SemVer calculator takes one version and an operation. Parse prints the parts. major, minor, patch and prerelease bump the version with the usual reset rules: a minor bump of 1.2.3 is 1.3.0, not 1.3.3. Compare needs a second version and returns -1, 0 or 1. Satisfies needs an npm range and returns true or false.
1.2.3 satisfies the range ^1.0 || 2.x, so the result is true. 1.2.3-alpha compared with 1.2.3 is -1, because a prerelease is older than the release it hangs off. That single minus sign is the rule people get backwards when they expect 1.2.3-alpha to be “newer than 1.2.2 and therefore fine.”
An invalid version fails before any bump. The range field is checked only for satisfies; a compare against a range string is not attempted. The parser page is the same breakdown as the parse operation, without the bump controls.
Version 1.2.3, operation minor. Separately, operation satisfies against ^1.0 || 2.x.
Minor bump: 1.3.0. Satisfies ^1.0 || 2.x: true.
The prerelease comparison is the result worth checking by hand. 1.2.3-alpha is less than 1.2.3, and the page says -1.
In semantic versioning a prerelease ranks below the release with the same numbers. Compare returns -1. It does not mean the alpha is older than 1.2.2; it means it is not yet 1.2.3.
1.2.3 becomes 1.3.0. Patch goes back to 0. A major bump of 1.2.3 becomes 2.0.0.
npm ranges, checked with the same rules npm uses. ^1.0 || 2.x matches 1.2.3. An empty or invalid range is an error on satisfies.
The parser only splits a version into major, minor, patch, prerelease and build. This page also bumps, compares and tests ranges.