Skip to main content
Deno 2 is finally 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.8/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; }