https://github.com/samdvr/semver
https://github.com/samdvr/semver
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samdvr/semver
- Owner: samdvr
- License: mit
- Created: 2022-05-05T18:35:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-05T21:55:29.000Z (about 4 years ago)
- Last Synced: 2025-02-03T08:01:43.373Z (over 1 year ago)
- Language: Scala
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```