import * as mod from "https://deno.land/std@0.151.0/semver/mod.ts";
The semantic version parser.
This module is browser compatible.
Functions
f cmp | |
f diff | |
f eq | |
f gt | |
f gte | |
f gtr | Return true if version is greater than all the versions possible in the range. |
f inc | Return the version incremented by the release type (major, minor, patch, or prerelease), or null if it's not valid. |
Return true if any of the ranges comparators intersect | |
f lt | |
f lte | |
f ltr | Return true if version is less than all the versions possible in the range. |
Return the major version number. | |
Return the minor version number. | |
f neq | |
Return true if the version is outside the bounds of the range in either the high or low direction. The hilo argument must be either the string '>' or '<'. (This is the function called by gtr and ltr.) | |
Return the patch version number. | |
f sort | |
Type Aliases
The semantic version parser. |