Semver.Swift icon indicating copy to clipboard operation
Semver.Swift copied to clipboard

Semantic Versioning library for Swift

Swift Semantic Versioning Library

Build Status Carthage compatible CocoaPods

Semver.swift is described by the v2.0.0 specification found at http://semver.org/.

Usage

Semver.valid("1.2.3") // true
Semver.valid("a.b.c") // false
Semver.clean("  =v1.2.3   ") // '1.2.3'
Semver.gt("1.2.3", "9.8.7") // false
Semver.lt("1.2.3", "9.8.7") // true
Semver.gte("1.2.3", "9.8.7") // false
Semver.lte("1.2.3", "9.8.7") // true
Semver.eq("1.2.3", "9.8.7") // false

Author

di wu, [email protected]

License

Semver.swift is available under the MIT license. See the LICENSE file for more info.