Skip to main content
Deno 2 is finally 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.6.0/src/tools/Version.ts";
const { compare } = Version;

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

Returns

-1 | 0 | 1