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

std/semver/mod.ts>format

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function format
Re-export
import { format } from "https://deno.land/std@0.199.0/semver/mod.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

optional
style: FormatStyle = [UNSUPPORTED]