root 3bf41bf355 update | há 1 ano atrás | |
---|---|---|
.. | ||
LICENSE | há 1 ano atrás | |
README.md | há 1 ano atrás | |
index.js | há 1 ano atrás | |
package.json | há 1 ano atrás |
Find the greatest satisfied semver range from an array of ranges.
var findRange = require('semver-greatest-satisfied-range');
var range = findRange('1.1.0', ['^1.0.0', '^1.1.0', '^1.2.0']);
// range === '^1.1.0'
findRange(version, rangeArray)
Takes a version and array of ranges, returns the greatest satisfied range. Range support is defined by sver-compat.
MIT