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

std/semver/mod.ts>parse

Deno standard library
Go to Latest
function parse
Re-export
import { parse } from "https://deno.land/std@0.203.0/semver/mod.ts";

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

Parameters

version: string | SemVer

The version string to parse

Returns

A valid SemVer