You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rdrew
573c318665
|
2 years ago | |
---|---|---|
.. | ||
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
README.md
semver-greatest-satisfied-range
Find the greatest satisfied semver range from an array of ranges.
Usage
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'
API
findRange(version, rangeArray)
Takes a version and array of ranges, returns the greatest satisfied range. Range support is defined by sver-compat.
License
MIT