semver-greatest-satisfied-range
Find the greatest satisfied semver range from an array of ranges.
Last updated 8 years ago by phated .
MIT · Repository · Bugs · Original npm
$ cnpm install semver-greatest-satisfied-range 
SYNC missed versions from official npm registry.

semver-greatest-satisfied-range

NPM version Downloads Build Status AppVeyor Build Status Coveralls Status Gitter chat

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

Current Tags

  • 1.1.0                                ...           latest (8 years ago)

1 Versions

  • 1.1.0                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org