Skip to content

carpentry-org/semver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semver

Semantic versioning for Carp.

Installation

You can obtain this library like so:

(load "[email protected]:carpentry-org/[email protected]")

Usage

Semantic versions can be parsed using Semver.from-string.

(Semver.from-string "1.2.3-mytag") ; returns a Maybe
; or, alternatively
(Semver.init 1 2 3 "-mytag")

You can then compare them using normal arithmetic comparison. The tags are disregarded everywhere, except when checking equality.


Have fun!