Skip to content

homeDir

Module @netwiv/api/path · Kind Function

import { homeDir } from '@netwiv/api/path';

Returns the path to the user’s home directory.

  • Linux: Resolves to $HOME.
  • macOS: Resolves to $HOME.
  • Windows: Resolves to {FOLDERID_Profile}.
function homeDir(): Promise<string>
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.