Skip to content

configDir

Module @netwiv/api/path · Kind Function

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

Returns the path to the user’s config directory.

  • Linux: Resolves to $XDG_CONFIG_HOME or $HOME/.config.
  • macOS: Resolves to $HOME/Library/Application Support.
  • Windows: Resolves to {FOLDERID_RoamingAppData}.
function configDir(): Promise<string>
import { configDir } from '@netwiv/api/path';
const configDirPath = await configDir();

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.