I just released a new Kotlin Multiplatform library for accessing system- and runtime-information from common code.
It can be used to detect the OS at runtime on any target, the runtime itself, memory usage statistics and access environment variables.
More features may be added in the future or when requested 🙂
github.com/karmakrafts/…/1.0.1