semver-greatest-satisfied-range
Find the greatest satisfied semver range from an array of ranges.
Last updated 3 years ago by phated .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ 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 (3 years ago)

2 Versions

  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 203
This Week 203
This Month 34,812
Last Day 629
Last Week 10,904
Last Month 52,827
Dependencies (1)
Dev Dependencies (8)

Copyright 2014 - 2017 © taobao.org |