Skip to main content
Module

std/semver/mod.ts>tryParseRange

The Deno Standard Library
Go to Latest
function tryParseRange
import { tryParseRange } from "https://deno.land/std@0.223.0/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