Skip to main content
Module

x/libpkgx/src/utils/semver.ts>default

bringing the entire open source ecosystem to your node and deno apps
Very Popular
Go to Latest
class default
import { default } from "https://deno.land/x/libpkgx@v0.16/src/utils/semver.ts";

we have our own implementation because open source is full of weird but almost valid semver schemes, eg: openssl 1.1.1q ghc 5.64.3.2 it also allows us to implement semver_intersection without hating our lives

Constructors

new
default(input:
| string
| number[]
| SemVer
)

Properties

readonly
build: string[]
readonly
components: number[]
major: number
minor: number
patch: number
readonly
prerelease: string[]
readonly
optional
pretty: string
readonly
raw: string

Methods

compare(that: SemVer): number
eq(that: SemVer): boolean
gt(that: SemVer): boolean
gte(that: SemVer): boolean
lt(that: SemVer): boolean
lte(that: SemVer): boolean
neq(that: SemVer): boolean
toString(): string