CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
parse.js19 linesDownload Raw Back to functions
1'use strict'2 3const SemVer = require('../classes/semver')4const parse = (version, options, throwErrors = false) => {5  if (version instanceof SemVer) {6    return version7  }8  try {9    return new SemVer(version, options)10  } catch (er) {11    if (!throwErrors) {12      return null13    }14    throw er15  }16}17 18module.exports = parse19 
basant307/AI_Governance_Project · CoolFace