You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 years ago | |
|---|---|---|
| .. | ||
| .babelrc | 6 years ago | |
| LICENSE | 6 years ago | |
| README.md | 6 years ago | |
| semver-intersect.js | 6 years ago | |
README.md
semver-intersect

Get the intersection of multiple semver ranges
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')