kiruthiga 55473b7e7c initial push před 5 dny
..
.babelrc 55473b7e7c initial push před 5 dny
LICENSE 55473b7e7c initial push před 5 dny
README.md 55473b7e7c initial push před 5 dny
package.json 55473b7e7c initial push před 5 dny
semver-intersect.js 55473b7e7c initial push před 5 dny

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