Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/os/mod.ts>userHomeDir

Deno Standard Extensions
Go to Latest
function userHomeDir
import { userHomeDir } from "https://deno.land/x/yxz@0.17.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.