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

std/semver/mod.ts>satisfies

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
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.199.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