# semver-greatest-satisfied-range

> Find the greatest satisfied semver range from an array of ranges.

Latest version **2.0.0** (published 2022-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install semver-greatest-satisfied-range
pnpm add semver-greatest-satisfied-range
yarn add semver-greatest-satisfied-range
bun add semver-greatest-satisfied-range
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-01-31 |
| First published | 2015-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 10.13.0 |
| Dependencies | 1 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Gulp Team |
| Maintainers | yocontra, phated |
| Keywords | semver, range, max, satisfied, range, array, greatest |

## Links

- npm: https://www.npmjs.com/package/semver-greatest-satisfied-range
- Repository: https://github.com/gulpjs/semver-greatest-satisfied-range
- Homepage: https://github.com/gulpjs/semver-greatest-satisfied-range#readme
- Issues: https://github.com/gulpjs/semver-greatest-satisfied-range/issues
- npm.io page: https://npm.io/package/semver-greatest-satisfied-range

## Dependencies (1)

- [sver](https://npm.io/package/sver.md) ^1.8.3

## Recent versions

- 2.0.0 (latest) — 2022-01-31
- 1.1.0 — 2017-08-18
- 1.0.0 — 2015-01-05

## README

<p align="center">
  <a href="https://gulpjs.com">
    <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
  </a>
</p>

# semver-greatest-satisfied-range

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Find the greatest satisfied semver range from an array of ranges.

## Usage

```js
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][range-support].

## License

MIT

<!-- prettier-ignore-start -->
[downloads-image]: https://img.shields.io/npm/dm/semver-greatest-satisfied-range.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/semver-greatest-satisfied-range
[npm-image]: https://img.shields.io/npm/v/semver-greatest-satisfied-range.svg?style=flat-square

[ci-url]: https://github.com/gulpjs/semver-greatest-satisfied-range/actions?query=workflow:dev
[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/semver-greatest-satisfied-range/dev?style=flat-square

[coveralls-url]: https://coveralls.io/r/gulpjs/semver-greatest-satisfied-range
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/semver-greatest-satisfied-range/master.svg?style=flat-square
<!-- prettier-ignore-end -->

<!-- prettier-ignore-start -->
[range-support]: https://github.com/guybedford/sver#range-support
<!-- prettier-ignore-end -->

---
_Source: https://npm.io/package/semver-greatest-satisfied-range · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
