parse
Return the parsed version as a SemVer
object.
In case version
is invalid, the function will
throw if
throwErrors
istrue
.return
null
otherwise.
external fun parse(version: String?, optionsOrLoose: Boolean, throwErrors: Boolean = definedExternally): SemVer?(source)
external fun parse(version: String?, optionsOrLoose: Options, throwErrors: Boolean = definedExternally): SemVer?(source)