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

std/semver/mod.ts>validRange

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

Returns the valid range or null if it's not valid.

Parameters

range: string | Range | null
optional
options: Options

Returns

string | null