version string
OptionaloptionsOrLoose: boolean | Optionsan options object { loose } (where loose is the only available option) or a boolean indicating whether to enable loose mode. In loose mode, the parser is more forgiving with imperfectly formatted semver strings
the parsed version as a string, or null if it's not valid
Return the parsed version as a string, or
nullif it's not valid.Example