Skip to content

Concatapult/semver-set

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semver-set

Set operations for semver.

Usage

intersect

Find the intersection of multiple semver ranges. This can be useful for finding a "lowest common denominator" of versions.

import { intersect } from 'semver-set';

// ^2.2.0
intersect('^1.1 || ^2.2 || >=5', '^2.2.0-alpha1');

// null
intersect('~2.2.4', '~2.3.0');

About

Set operations for semver.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%