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

x/pup/deps.ts>parseVersion

Universal process manager built in Deno
Go to Latest
function parseVersion
Re-export
import { parseVersion } from "https://deno.land/x/pup@1.0.0-rc.5/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

A valid SemVer

Parameters

version: string | SemVer | null
optional
options: { includePrerelease: boolean; }