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

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

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