summaryrefslogtreecommitdiff
path: root/node_modules/semver/functions/satisfies.js
blob: a0264a222ac82d7271d755bbb40390961871601c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'

const Range = require('../classes/range')
const satisfies = (version, range, options) => {
  try {
    range = new Range(range, options)
  } catch (er) {
    return false
  }
  return range.test(version)
}
module.exports = satisfies