Skip to main content
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.213.0/semver/try_parse_range.ts";

A tries to parse a valid SemVerRange string or returns undefined

Parameters

range: string

The range string

Returns

SemVerRange & Range | undefined

A SemVerRange object if valid otherwise undefined