Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denoify/src/tools/Version.ts>Version.compare

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

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

Returns

-1 | 0 | 1