Skip to main content
Module

std/semver/test_range.ts>testRange

The Deno Standard Library
Latest
function testRange
Deprecated
Deprecated

This will be removed in 1.0.0. Use satisfies instead. See https://github.com/denoland/deno_std/pull/4364.

import { testRange } from "https://deno.land/std@0.224.0/semver/test_range.ts";

Test to see if the version satisfies the range.

Parameters

version: SemVer

The version to test

range: Range

The range to check

Returns

boolean

true if the version is in the range