mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-12-25 12:45:23 +00:00
.. | ||
index.js | ||
LICENSE | ||
package.json | ||
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