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

std/semver/mod.ts>compareBuild

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function compareBuild
import { compareBuild } from "https://deno.land/std@0.190.0/semver/mod.ts";

The same as compare but considers build when two versions are equal. Sorts in ascending order if passed to Array.sort().

Parameters

a: string | SemVer
b: string | SemVer
optional
options: Options

Returns

1 | 0 | -1