Module

std/semver/mod.ts>parse

The Deno Standard Library
Latest
function parse
import { parse } from "https://dotland.deno.dev/std@0.224.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

The version string to parse

Returns

A valid SemVer

import parse
import { parse } from "https://dotland.deno.dev/std@0.224.0/semver/mod.ts";