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

x/dnit/mod.ts>semver.inc

dnit: typescript (deno) task executor
Go to Latest
function semver.inc
import { semver } from "https://deno.land/x/dnit@dnit-v1.14.3/mod.ts";
const { inc } = semver;

Return the version incremented by the release type (major, minor, patch, or prerelease), or null if it's not valid.

Parameters

version: string | SemVer
release: ReleaseType
optional
optionsOrLoose: boolean | Options
optional
identifier: string

Returns

string | null