Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

semver-bounded

bendrucker105MIT2.0.3

Determine whether a semver range is bounded

semver, range, bounded, maximum

readme

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