Semver but for Dota 2 patch versions
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