systemName
systemName returns the POSIX-style (uname -s) system name: "Linux", "Darwin", or "Windows".
Signature
systemName(): stringtyrus
import { systemName } from "tyrus:os";
const name: string = systemName();
print(name); // "Linux", "Darwin", or "Windows"Not the Linux distribution name
systemName is deliberately the kernel's own POSIX name, not the Linux distribution name (e.g. never "Ubuntu" or "Linux Mint"). Falls back to "unknown" if the operating system does not report a value, rather than aborting the program.
