# semver-intersect

> Get the intersection of multiple semver ranges

Latest version **1.5.0** (published 2023-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install semver-intersect
pnpm add semver-intersect
yarn add semver-intersect
bun add semver-intersect
```

## 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 | 1.5.0 |
| Published | 2023-12-01 |
| First published | 2017-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Suneil Nyamathi |
| Maintainers | snyamathi |
| Keywords | semver |

## Links

- npm: https://www.npmjs.com/package/semver-intersect
- Repository: https://github.com/snyamathi/semver-intersect
- Homepage: https://github.com/snyamathi/semver-intersect#readme
- Issues: https://github.com/snyamathi/semver-intersect/issues
- npm.io page: https://npm.io/package/semver-intersect

## Dependencies (1)

- [semver](https://npm.io/package/semver.md) ^6.3.0

## Recent versions

- 1.5.0 (latest) — 2023-12-01
- 1.4.0 — 2018-08-07
- 1.3.1 — 2018-02-20
- 1.3.0 — 2018-02-01
- 1.2.0 — 2017-12-23
- 1.1.2 — 2017-07-19
- 1.1.1 — 2017-07-19
- 1.1.0 — 2017-06-19
- 1.0.0 — 2017-06-13

## README

# semver-intersect [![npm](https://img.shields.io/npm/v/semver-intersect.svg)](https://www.npmjs.com/package/semver-intersect) [![Build Status](https://travis-ci.org/snyamathi/semver-intersect.svg?branch=master)](https://travis-ci.org/snyamathi/semver-intersect) [![David](https://david-dm.org/snyamathi/semver-intersect.svg)](https://david-dm.org/snyamathi/semver-intersect) [![Downloads](https://img.shields.io/npm/dm/semver-intersect.svg)](https://npm-stat.com/charts.html?package=semver-intersect) [![Greenkeeper badge](https://badges.greenkeeper.io/snyamathi/semver-intersect.svg)](https://greenkeeper.io/)
Get the intersection of multiple semver ranges

```js
const { intersect } = require('semver-intersect');

// ^4.1.0
intersect('^4.0.0', '^4.1.0');

// ~4.3.0
intersect('^4.0.0', '~4.3.0');

// ~4.3.89
intersect('^4.0.0', '~4.3.89', '~4.3.24', '~4.3.63');

// throws "Range >=4.5.0 is not compatible with <4.4.0"
intersect('^4.0.0', '~4.3.0', '^4.5.0')
```

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