semver

Semantic versioning parser for Nim

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 1.2.3
License BSD-3-Clause
CI Status Failing
Downloads 0
Last Indexed 2026-08-31 07:15

Authors

  • Euan T

Installation

nimble install semver
choosenim install semver
git clone https://github.com/euantorano/semver.nim

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
semver - - - - - - -

Dependencies

Package Version Optional
nim >= 1.0.0 No

Source

Repository https://github.com/euantorano/semver.nim
Homepage https://github.com/euantorano/semver.nim
Registry Source nimble_official

README

semver.nim

Semantic versioning parser for Nim.

Allows the parsing of version strings into objects and the comparing of version objects.

Installation

nimble install semver

Or add the following to your .nimble file:

# Dependencies

requires "semver >= 1.2.0"

Usage

import semver

let version = newVersion(1, 2, 3)
let usersVersion = parseVersion("v1.2.4-alpha") # Version(major: 1, minor: 2, patch: 4, build: "alpha", metadata: "")

check usersVersion > version # true
check usersVersion == version # false

When parsing versions, the module will automatically ignore any proceeding "=v" or "v", allowing it to work with user submitted versions for packages.