You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

7 line
220 B

  1. const parse = require('./parse')
  2. const prerelease = (version, options) => {
  3. const parsed = parse(version, options)
  4. return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
  5. }
  6. module.exports = prerelease