Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/yxz/os/mod.ts>userHomeDir

Deno Standard Extensions
Latest
function userHomeDir
import { userHomeDir } from "https://deno.land/x/yxz@0.32.0/os/mod.ts";

Returns the current user's home directory.

On Unix, including macOS, it returns the $HOME environment variable. On Windows, it returns %USERPROFILE%.}

If none of the above are defined, returns the OS default path.