Skip to main content
Module

std/semver/parse.ts>parse

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

A valid SemVer