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

x/libpkgx/mod.ts>semver.default

`import`… but with pkging powers
Very Popular
Go to Latest
class semver.default
import { semver } from "https://deno.land/x/libpkgx@v0.19/mod.ts";
const { default } = semver;

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[]
)

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