Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/mod.ts>semver.compareBuild

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function semver.compareBuild
import { semver } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/mod.ts";
const { compareBuild } = semver;

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