Skip to main content
Module

x/semver/mod.ts>outside

The semver parser for Deno (a fork of node-semver using TypeScript)
Latest
function outside
import { outside } from "https://deno.land/x/semver@v1.4.1/mod.ts";

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