An open API service indexing awesome lists of open source software.

https://github.com/samdvr/semver


https://github.com/samdvr/semver

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Semver

This library provides parsing and comparison capability for [Semantic Versioning](https://semver.org) strings.

## Parsing

```scala
Semver.parse("1.2.3") // => Right(Semver(1, 2, 3))
```

## Comparison

```scala
Semver(2, 2, 3) > Semver(1, 2, 3) // => true
```