{"category":"web","endpoint":"https://setget.net/v1/tools/semver-range","examples":[{"input":{"range":"^1.2.3","versions":["1.2.2","1.2.3","1.9.0","2.0.0","1.3.0-beta.1"]},"output":{"highest":"1.9.0","invalid":[],"matching":["1.2.3","1.9.0"],"normalised":">=1.2.3 <2.0.0-0","not_matching":["1.2.2","2.0.0","1.3.0-beta.1"],"range":"^1.2.3"}},{"input":{"range":"~1.2 || 2.0.0 - 2.5","versions":["1.2.9","1.3.0","2.5.7","2.6.0"]},"output":{"highest":"2.5.7","invalid":[],"matching":["1.2.9","2.5.7"],"normalised":">=1.2.0 <1.3.0-0 || >=2.0.0 <2.6.0-0","not_matching":["1.3.0","2.6.0"],"range":"~1.2 || 2.0.0 - 2.5"},"title":"Tilde, hyphen range and \"or\""}],"input_schema":{"additionalProperties":false,"properties":{"include_prerelease":{"default":false,"description":"Let prerelease versions match like ordinary versions.","type":"boolean"},"range":{"description":"The range, in npm syntax: ^, ~, x-ranges, hyphen ranges, comparators and ||.","examples":["^1.2.3"],"maxLength":500,"type":"string"},"versions":{"description":"The versions to test.","examples":[["1.2.2","1.2.3","1.9.0","2.0.0"]],"maxItems":1000,"type":"array"}},"required":["range","versions"],"type":"object"},"keywords":["semver range","npm version range","caret","tilde","satisfies","package.json","dependency version","max satisfying"],"related":["semver-compare"],"slug":"semver-range","summary":"Test versions against an npm-style range such as ^1.2.3 or >=1.0 <2 and find the highest match.","tier":"inline","title":"SemVer range tester","url":"https://setget.net/tools/semver-range"}
