semver-intersect

1.5.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.5.0164,113latest

Version History

VersionDownloads (Last 7 Days)Published
1.5.0164,113
1.4.0264,431
1.3.15,023
1.3.079
1.2.03
1.1.20
1.1.10
1.1.00
1.0.00

Package Sidebar

Install

npm i semver-intersect

Weekly Downloads

433,649

Version

1.5.0

License

MIT

Unpacked Size

11.9 kB

Total Files

6

Last publish

Collaborators

  • snyamathi