Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
class semver.Comparator
import { semver } from "https://deno.land/x/mongo@v0.31.1/tests/test.deps.ts";
const { Comparator } = semver;

Constructors

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

Properties

loose: boolean
operator:
| ""
| "="
| "<"
| ">"
| "<="
| ">="
options: Options
semver: SemVer
value: string

Methods

intersects(comp: Comparator, optionsOrLoose?: boolean | Options): boolean
parse(comp: string): void
test(version: string | SemVer): boolean
toString(): string