Skip to main content
Module

x/ensure_version/deps.ts>semver.outside

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.outside
import { semver } from "https://deno.land/x/ensure_version@1.0.3/deps.ts";
const { outside } = semver;

Return true if the version is outside the bounds of the range in either the high or low direction. The hilo argument must be either the string '>' or '<'. (This is the function called by gtr and ltr.)

Parameters

version: string | SemVer
range: string | Range
hilo: ">" | "<"
optional
optionsOrLoose: boolean | Options

Returns

boolean