Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/semver/range_min.ts>rangeMin

The Deno Standard Library
Latest
function rangeMin
Deprecated
Deprecated

This will be removed in 1.0.0. Use greaterThanRange or lessThanRange for comparing ranges and semvers. The minimum version of a range is often not well defined, and therefore this API shouldn't be used. See https://github.com/denoland/deno_std/issues/4365 for details.

The minimum valid SemVer for a given range or INVALID

import { rangeMin } from "https://deno.land/std@0.224.0/semver/range_min.ts";

Parameters

range: Range

The range to calculate the min for

Returns

A valid SemVer or INVALID