std.home

std

home() -> path

Get the current user's home directory

Resolves the home directory using the HOME environment variable first, then falls back to getpwuid(getuid()). Returns nil if neither method succeeds. Result is cached on first call.