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

std/semver/mod.ts>tryParseRange

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

A tries to parse a valid Range string or returns undefined

Parameters

range: string

The range string

Returns

Range | undefined

A Range object if valid otherwise undefined