parse

external fun parse(version: String?): SemVer?(source)
external fun parse(version: String?, optionsOrLoose: Boolean = definedExternally): SemVer?(source)
external fun parse(version: String?, optionsOrLoose: Options = definedExternally): SemVer?(source)
external fun parse(version: SemVer?): SemVer?(source)
external fun parse(version: SemVer?, optionsOrLoose: Boolean = definedExternally): SemVer?(source)
external fun parse(version: SemVer?, optionsOrLoose: Options = definedExternally): SemVer?(source)

Return the parsed version as a SemVer object, or null if it's not valid.