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

x/fresh/src/dev/deps.ts>semver.format

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.format
Re-export
import { semver } from "https://deno.land/x/fresh@1.5.4/src/dev/deps.ts";
const { format } = semver;

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]