Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/semver/try_parse.ts>tryParse

Deno standard library
Go to Latest
function tryParse
import { tryParse } from "https://deno.land/std@0.202.0/semver/try_parse.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