Skip to main content
Module

std/semver/mod.ts>tryParse

The Deno Standard Library
Latest
function tryParse
import { tryParse } from "https://deno.land/std@0.224.0/semver/mod.ts";

Returns the parsed version, or undefined if it's not valid.

Parameters

optional
version: string

The version string to parse

Returns

SemVer | undefined

A valid SemVer or undefined