major

external fun major(version: String): Int(source)
external fun major(version: String, optionsOrLoose: Boolean = definedExternally): Int(source)
external fun major(version: String, optionsOrLoose: Options = definedExternally): Int(source)
external fun major(version: SemVer): Int(source)
external fun major(version: SemVer, optionsOrLoose: Boolean = definedExternally): Int(source)
external fun major(version: SemVer, optionsOrLoose: Options = definedExternally): Int(source)

Return the major version number.