Skip to main content
Module

x/fluentci/deps.ts>semver.testComparator

This is the command line interface for FluentCI.
Go to Latest
function semver.testComparator
Deprecated
Deprecated

(will be removed in 0.214.0) Use testRange instead.

import { semver } from "https://deno.land/x/fluentci@v0.13.0/deps.ts";
const { testComparator } = semver;

Test to see if a semantic version falls within the range of the comparator.

Parameters

version: SemVer

The version to compare

comparator: Comparator

The comparator

Returns

boolean

True if the version is within the comparators set otherwise false