Whoami
Retrieve the current user and environment.
Getting Started
Using the whoami crate is super easy! All of the exported items are simple functions with no parameters that return Strings (with the exception of env, which returns an enum). The following example shows how to use all of the functions:
use whoami;
Features
- Get the user's full name
- Get the user's username
- Get the computer's hostname
- Get the computer's fancy name
- Get the computer's desktop environment
- Get the computer's OS name and version
- Works on Linux / Windows / Mac OS (for some functions)
Binary
whome: replacement of the whoami command that depends on this crate.
TODO
- Work on Mac OS / iOS / Android / Nintendo Switch / Wasm (Web Assembly) / other OS's.