Skip to main content
Module

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

The next-gen web framework.
Extremely Popular
Latest
function semverParse
Re-export
import { semverParse } from "https://deno.land/x/fresh@1.7.1/src/dev/deps.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