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

x/deno/tools/release/deps.ts>semver.compareBuild

A modern runtime for JavaScript and TypeScript.
Go to Latest
function semver.compareBuild
import { semver } from "https://deno.land/x/deno@v1.40.0/tools/release/deps.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