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

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

Update dependencies the Deno way
Latest
function parse
import { parse } from "https://deno.land/x/molt@0.17.2/lib/std/semver.ts";

Attempt to parse a string as a semantic version, returning either a SemVer object or throws a TypeError.

Parameters

version: string

The version string to parse

Returns

SemVer

A valid SemVer