Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.199.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 | undefined

A SemVerRange object if valid otherwise undefined