Home

Awesome

This library speficies a simple encoding and decoding scheme to combine two semver versions into one.

My intended use for this is as a versioning scheme for Hugo Modules that are wrappers of upstream libraries. The wrapper and library have diverging release cycles, and we want to maintain the upstream version info, so we cannot just use the upstream version as is.

Features:

The minor and patch version:

Some examples a width of 2 digits per version:

If either of the versions reaches 100, the prefix can be incremented: