https://github.com/beeequeue/dotaver
🟥 Semver but for Dota 2 patch versions
https://github.com/beeequeue/dotaver
Last synced: 9 months ago
JSON representation
🟥 Semver but for Dota 2 patch versions
- Host: GitHub
- URL: https://github.com/beeequeue/dotaver
- Owner: beeequeue
- Created: 2022-06-08T21:07:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-22T19:34:11.000Z (about 1 year ago)
- Last Synced: 2024-11-24T19:42:09.828Z (about 1 year ago)
- Language: TypeScript
- Size: 315 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# `dotaver`
[](https://www.npmjs.com/package/dotaver)



Semver but for Dota 2 patch versions
## Usage
```shell
npm i dotaver
yarn add dotaver
pnpm i dotaver
```
```ts
// 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
```