npm.io
2.0.3 • Published 7 years ago

semver-bounded

Licence
MIT
Version
2.0.3
Deps
4
Size
3 kB
Vulns
0
Weekly
0

semver-bounded Build Status Greenkeeper badge

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

Keywords