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

std/semver/mod.ts>outside

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function outside
import { outside } from "https://deno.land/std@0.190.0/semver/mod.ts";

Returns 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
options: Options

Returns

boolean