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

x/fresh/src/dev/deps.ts>semver.parse

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.parse
Re-export
import { semver } from "https://deno.land/x/fresh@1.4.0/src/dev/deps.ts";
const { parse } = semver;

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; }