semver-bounded

2.0.3 • Public • Published

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

Package Sidebar

Install

npm i semver-bounded

Weekly Downloads

104

Version

2.0.3

License

MIT

Unpacked Size

3.28 kB

Total Files

4

Last publish

Collaborators

  • bendrucker