Skip to main content
Module

std/semver/mod.ts>satisfies

Deno standard library
Go to Latest
function satisfies
Deprecated
Deprecated

(will be removed after 0.200.0) Use testRange() instead

A compatibility function that calls testRange

import { satisfies } from "https://deno.land/std@0.200.0/semver/mod.ts";

Parameters

semver: string | SemVer

A valid SemVer string

range: string | SemVerRange

A valid SemVerRange string

optional
options: { includePrerelease: boolean; }

Returns

boolean

True if the value is valid SemVer in the SemVerRange