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

x/release_up/deps.ts>semver.major

🌱 Automate releases
Go to Latest
function semver.major
import { semver } from "https://deno.land/x/release_up@0.5.0/deps.ts";
const { major } = semver;

Return the major version number.

Parameters

v: string | SemVer
optional
optionsOrLoose: boolean | Options

Returns

number