nthportal / scala-platform   1.0.2

Apache License 2.0 GitHub

A tiny library for determining what platform you are running on at runtime

Scala versions: 3.x 2.13 2.12
Scala.js versions: 1.x
Scala Native versions: 0.4

scala-platform

A tiny library for determining what platform you are running on at runtime.


To use this library, add the following dependency to your build.sbt:

"lgbt.princess" %%% "platform" % "1.0.2"

The entirety of the library is a Platform object with the following interface:

package lgbt.princess.platform

object Platform {
  final val isJVM    = ???
  final val isJS     = ???
  final val isNative = ???
}

with the constants having the appropriate value on each platform.