Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fresh/src/dev/deps.ts>semverParse

The next-gen web framework.
Extremely Popular
Go to Latest
function semverParse
import { semverParse } from "https://deno.land/x/fresh@1.6.3/src/dev/deps.ts";

Parameters

version: SemVer

Returns

SemVer

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