Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/denoify/scripts/tools/SemVer.ts>SemVer.compare

🦕For NPM module authors that would like to support Deno but do not want to write and maintain a port.
Latest
function SemVer.compare
import { SemVer } from "https://deno.land/x/denoify@v1.6.16/scripts/tools/SemVer.ts";
const { compare } = SemVer;

v1 < v2 => -1 v1 === v2 => 0 v1 > v2 => 1

Returns

-1 | 0 | 1