SemVer

SemVer

154 Downloads

Semantic versioning for Lua.
See http://semver.org/ for details about semantic versioning.

This addon does nothing on its own. Developers can use it in their own addons if they want to save a few lines.

Example Usage

local v = LibStub"SemVer"
-- The following lines each evaluate to true.
v"1.2.3" == v(1,2,3)
v"1.2.3" < v(4,5,6)
v"1.2.3-alpha" < v"1.2.3"
v"1.2.3" == v"1.2.3+build.1"

Notes

Full Documentation and Installation Instructions

MIT Licence. Feel free to use and modify this however you want. There is no need to provide credit, but you must keep the licence included.