homeDir
Module @netwiv/api/path · Kind Function
import { homeDir } from '@netwiv/api/path';Returns the path to the user’s home directory.
Platform-specific
Section titled “Platform-specific”- Linux: Resolves to
$HOME. - macOS: Resolves to
$HOME. - Windows: Resolves to
{FOLDERID_Profile}.
Signature
Section titled “Signature”function homeDir(): Promise<string>Example
Section titled “Example”import { homeDir } from '@netwiv/api/path';const homeDirPath = await homeDir();Upstream since 1.0.0
Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.