Skip to main content
Module

std/semver/mod.ts>inc

Deno standard library
Go to Latest
function inc
import { inc } from "https://deno.land/std@0.152.0/semver/mod.ts";

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
options: Options
optional
identifier: string

Returns

string | null