#semver #semantic #versioning #pkgx #command-line-tool

libsemverator

A library for working with semantic versioning (libpkgx implementation)

6 releases (3 breaking)

0.9.0 Jan 8, 2025
0.8.0 Jan 5, 2025
0.7.2 Jan 2, 2025
0.6.0 Sep 6, 2024

#1657 in Command line utilities

Download history 1/week @ 2024-10-20 10/week @ 2024-12-08 471/week @ 2024-12-29 878/week @ 2025-01-05 1045/week @ 2025-01-12 161/week @ 2025-01-19 257/week @ 2025-01-26 194/week @ 2025-02-02

1,757 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

38KB
966 lines

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.2–3.5MB
~62K SLoC