Skip to main content
Module

x/ensure_version/deps.ts>semver.compare

Simple version ensurer for Deno that check {deno, typescript, v8} version for users of your module and prevent them from incompatibylities error
Go to Latest
function semver.compare
import { semver } from "https://deno.land/x/ensure_version@1.0.3/deps.ts";
const { compare } = semver;

Parameters

v1: string | SemVer
v2: string | SemVer
optional
optionsOrLoose: boolean | Options

Returns

1 | 0 | -1