Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class semver.Range
import { semver } from "https://deno.land/std@0.137.0/_tools/release/deps.ts";
const { Range } = semver;

Constructors

new
Range(range: string | Range | Comparator, optionsOrLoose?: boolean | Options)

Properties

includePrerelease: boolean
loose: boolean
options: Options
range: string
raw: string
set: ReadonlyArray<ReadonlyArray<Comparator>>

Methods

format(): string
intersects(range?: Range, optionsOrLoose?: boolean | Options): boolean
parseRange(range: string): ReadonlyArray<Comparator>
test(version: string | SemVer): boolean
toString(): string