#semver #versioning #pkgx

libsemverator

A library for working with semantic versioning (libpkgx implementation)

8 releases (4 breaking)

0.10.1 Jun 18, 2025
0.10.0 Apr 2, 2025
0.9.0 Jan 8, 2025
0.8.0 Jan 5, 2025
0.6.0 Sep 6, 2024

#2061 in Command line utilities

Download history 23/week @ 2025-07-01 24/week @ 2025-07-08 7/week @ 2025-07-15 32/week @ 2025-07-22 20/week @ 2025-07-29 6/week @ 2025-08-05 4/week @ 2025-08-12 11/week @ 2025-08-19 8/week @ 2025-08-26 19/week @ 2025-09-02 18/week @ 2025-09-09 41/week @ 2025-09-16 19/week @ 2025-09-23 123/week @ 2025-09-30 316/week @ 2025-10-07 106/week @ 2025-10-14

565 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

41KB
1K SLoC

GitHub release (latest by date) Test with Code Coverage Check and Lint Coverage Status

semverator

Pure rust implementation of libpkgx:utils/semver.ts for command-line usage.

Install

cargo install semverator or, for pkgx users, pkgx +crates.io/semverator.

Usage

Well, thanks to clap, the help system flows nicely from the implementation:

A command line tool for working with semantic versioning (libpkgx implementation)

Usage: semverator <COMMAND>

Commands:
  validate        validates a version
  eq              checks if two versions are equal
  neq             checks if two versions are not equal
  gt              checks if left > right
  lt              checks if left < right
  validate-range  validates a range
  satisfies       validates a range satisfies a semver
  max             maximum version that satisifies a range
  intersect       intersection between two ranges
  help            Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Dependencies

~2.1–3.5MB
~61K SLoC