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.
mohemmionic5/Mohem/node_modules_/semver-intersect
ashwaq 66795daf5e add missing files 6 years ago
..
.babelrc add missing files 6 years ago
LICENSE add missing files 6 years ago
README.md add missing files 6 years ago
semver-intersect.js add missing files 6 years ago

README.md

semver-intersect npm Build Status David Downloads Greenkeeper badge

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')