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

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

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.testComparator
import { semver } from "https://deno.land/x/fresh@1.4.0/src/dev/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: SemVerComparator

The comparator

Returns

boolean

True if the version is within the comparators set otherwise false