semver
A module based on semver with some differences to suit bower
.
Installation
$ npm install bower-semver
Usage
Exactly the same API of semver, check its documentation.
Differences
.maxSatisfying()
Gives priority to non-prerelease versions:
; // Returns 1.0.0; // Returns 1.0.0; // Returns 1.0.0; // Returns 1.0.0-rc.1
.clean/.valid()
Keeps the build if any.
semver; // 1.0.0+patch1
Tests
$ npm test
License
Released under the MIT License.