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

x/molt/lib/std/semver.ts>tryParseRange

Update dependencies the Deno way
Latest
function tryParseRange
import { tryParseRange } from "https://deno.land/x/molt@0.17.2/lib/std/semver.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