Skip to main content
Deno 2 is finally 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
Re-export
import { outside } from "https://deno.land/std@0.199.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: SemVer

The version to compare to the range

The range of possible versions

optional
hilo: ">" | "<"

The operator for the comparison or both if undefined.

Returns

boolean

True if the version is outside of the range based on the operator

Parameters

version: string | SemVer

The version to compare to the range

range: string | SemVerRange

The range of possible versions

optional
hilo: ">" | "<"

The operator for the comparison or both if undefined.

optional
options: { includePrerelease: boolean; }

Returns

boolean

True if the version is outside of the range based on the operator