sensordb2 e64a8defe5 3.17 | vor 1 Jahr | |
---|---|---|
.. | ||
LICENSE | vor 1 Jahr | |
README.md | vor 1 Jahr | |
index.js | vor 1 Jahr | |
package.json | vor 1 Jahr |
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