semver-stable
Manage stable semver versions
Install
$ npm install semver-stable --save
Usage
var stable = require('semver-stable');
stable.is(version)
stable.is('1.2.3');
stable.is('1.2.3-stable');
stable.is('1.2.3-alpha');
Returns Boolean
whether the version
is stable.
stable.maxSatisfying(versions, range)
- versions
Array.<semver>
- range
String
semver range
stable.maxSatisfying([
'1.3.3',
'1.2.3-beta',
'1.2.2',
'1.2.1',
'1.1.2'
], '~1.2.0');
Returns String
the latest stable version matches the range.
stable.max(versions);
Returns String
the max stable version.
License
MIT