All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.ranges.valid.js Maven / Gradle / Ivy

There is a newer version: 7.6.3
Show newest version
const Range = require('../classes/range')
const validRange = (range, options) => {
  try {
    // Return '*' instead of '' so that truthiness works.
    // This will throw if it's invalid anyway
    return new Range(range, options).range || '*'
  } catch (er) {
    return null
  }
}
module.exports = validRange




© 2015 - 2024 Weber Informatics LLC | Privacy Policy