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

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

The next-gen web framework.
Extremely Popular
Go to Latest
function semver.satisfies
Deprecated
Deprecated

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

A compatibility function that calls testRange

import { semver } from "https://deno.land/x/fresh@1.4.3/src/dev/deps.ts";
const { satisfies } = semver;

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