[go: up one dir, main page]

Skip to content

🟥 Semver but for Dota 2 patch versions

Notifications You must be signed in to change notification settings

beeequeue/dotaver

Repository files navigation

dotaver

npm npm bundle size node-current Codecov

Semver but for Dota 2 patch versions

Usage

npm i dotaver
yarn add dotaver
pnpm i dotaver
// Node
import { DotaVersion } from "dotaver"
// Deno
import { DotaVersion } from "https://esm.sh/dotaver"

const version = DotaVersion.parse("7.36b")

console.log(version.toString()) // "7.36b"

const otherVersion = DotaVersion.parse("7.37")
console.log(version.compare(otherVersion)) // 1