templateDir
Module @netwiv/api/path · Kind Function
import { templateDir } from '@netwiv/api/path';Returns the path to the user’s template directory.
Platform-specific
Section titled “Platform-specific”- Linux: Resolves to
xdg-user-dirs’XDG_TEMPLATES_DIR. - macOS: Not supported.
- Windows: Resolves to
{FOLDERID_Templates}.
Signature
Section titled “Signature”function templateDir(): Promise<string>Example
Section titled “Example”import { templateDir } from '@netwiv/api/path';const templateDirPath = await templateDir();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.