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

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

`import`… but with pkging powers
Very Popular
Latest
class default
import { default } from "https://deno.land/x/libpkgx@v0.20.0/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