Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

The version string to parse

Returns

SemVer

A valid SemVer