README.md
# operating_system
[](https://hex.pm/packages/operating_system)
[](https://hexdocs.pm/operating_system/)
```sh
gleam add operating_system@1
```
```gleam
import operating_system
pub type OS {
Windows
Linux
MacOs
}
pub fn main() -> Nil {
let os_name = operating_system.name()
let os = case os_name {
"windows_nt" -> Windows
"linux" -> Linux
"darwin" -> MacOs
_ -> Linux
}
}
```
Further documentation can be found at <https://hexdocs.pm/operating_system>.