semver-intersect

WebJar for semver-intersect

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

semver-intersect
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

semver-intersect
WebJar for semver-intersect
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/snyamathi/semver-intersect

Download semver-intersect

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/semver-intersect/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>semver-intersect</artifactId>
    <version>1.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/semver-intersect/
implementation 'org.webjars.npm:semver-intersect:1.4.0'
// https://jarcasting.com/artifacts/org.webjars.npm/semver-intersect/
implementation ("org.webjars.npm:semver-intersect:1.4.0")
'org.webjars.npm:semver-intersect:jar:1.4.0'
<dependency org="org.webjars.npm" name="semver-intersect" rev="1.4.0">
  <artifact name="semver-intersect" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='semver-intersect', version='1.4.0')
)
libraryDependencies += "org.webjars.npm" % "semver-intersect" % "1.4.0"
[org.webjars.npm/semver-intersect "1.4.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : semver jar [5.0.0,6)

Project Modules

There are no modules declared in this project.

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

Version
1.4.0
1.3.1