semver-bounded
v2.0.3
Published
Determine whether a semver range is bounded
Downloads
241
Maintainers
Readme
semver-bounded
Determine whether a semver range is bounded
Install
$ npm install --save semver-bounded
Usage
var isBounded = require('semver-bounded')
isBounded.range('>2 <4') // => true
isBounded.range('>4') // => false
API
isBounded.range(range)
-> boolean
range
Required
Type: string
The semver range to test.
isBounded.comparators(comparators)
-> boolean
comparators
Required
Type: array[comparators]
An array of semver.Comparator
instances to test.
License
MIT © Ben Drucker