Skip to main content
Go to Latest
function minSatisfying
import { minSatisfying } from "https://deno.land/std@0.213.0/semver/min_satisfying.ts";

Returns the lowest version in the list that satisfies the range, or undefined if none of them do.

Parameters

versions: SemVer[]

The versions to check.

The range of possible versions to compare to.

Returns

SemVer | undefined

The lowest version in versions that satisfies the range.