detect

fun detect(description: String): Os?

Best-effort detection of an Os from a free-form description (e.g. the os.name JVM system property), matching well-known substrings case-insensitively.

Return

the detected Os, or null if description matches none of the known substrings