Skip to main content
Module

std/semver/mod.ts>maxVersion

Deno standard library
Go to Latest
function maxVersion
Deprecated
Deprecated

(will be removed after 0.200.0) Use comparatorMax() instead

A compatibility function to get the maximum version of a range string.

import { maxVersion } from "https://deno.land/std@0.200.0/semver/mod.ts";

Parameters

comparator: SemVerComparator

The comparator

Returns

The maximum version for the given range