Skip to content

DitherWither/platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

platform

Zero dependency platform detection library for gleam

Package Version Hex Docs

gleam add platform@1
import gleam/io
import platform

pub fn main() {
  io.debug(platform.runtime()) // Erlang, Node, Deno, Bun, Browser
  io.debug(platform.arch()) // X86, X64, Arm, Arm64
  io.debug(platform.os()) // Win32, Linux, Darwin, FreeBsd, OpenBsd
}

Further documentation can be found at https://hexdocs.pm/platform.

About

Zero dependency platform detection library for gleam

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published