first version string
second version string
OptionaloptionsOrLoose: boolean | Optionsan options object { loose } (where loose is the only available option) or a boolean indicating whether to enable loose mode. In loose mode, the parser is more forgiving with imperfectly formatted semver strings
0 if v1 == v21 if v1 > v2-1 if v1 < v2
Compares two versions including build identifiers (the bit after
+in the semantic version string).Example