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

x/molt/lib/std/semver.ts>format

Update dependencies the Deno way
Latest
function format
import { format } from "https://deno.land/x/molt@0.17.2/lib/std/semver.ts";

Format a SemVer object into a string.

If any number is NaN then NaN will be printed.

If any number is positive or negative infinity then '∞' or '⧞' will be printed instead.

Parameters

semver: SemVer

The semantic version to format

Returns

string

The string representation of a semantic version.