Miss any of our Open RFC calls?Watch the recordings here! »

bower-semver

0.1.0 • Public • Published

semver Build Status

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:

maxSatisfying(['1.0.0', '1.0.1-rc.1'], '~1.0.0');  // Returns 1.0.0
maxSatisfying(['1.0.0', '1.1.0-rc.1'], '^1.0.0');  // Returns 1.0.0
maxSatisfying(['1.0.0', '1.1.0-rc.1'], '*');       // Returns 1.0.0
maxSatisfying(['0.9.0', '1.0.0-rc.1'], '~1.0.0');  // Returns 1.0.0-rc.1

.clean/.valid()

Keeps the build if any.

semver.clean('v1.0.0+patch1');  // 1.0.0+patch1

Tests

$ npm test

License

Released under the MIT License.

Keywords

Install

npm i bower-semver

DownloadsWeekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar