Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/semver/mod.ts>gtr

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

Checks to see if the version is greater than all possible versions of the range.

Returns

boolean

Parameters

version: string | SemVer
range: string | SemVerRange
optional
options: { includePrerelease: boolean; }

Returns

boolean