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

std/semver/mod.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/mod.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