Skip to main content

app

Get application metadata.

This package is also accessible with window.__TAURI__.app when build.withGlobalTauri in tauri.conf.json is set to true.

Functions

getName

getName(): Promise<string>

Gets the application name.

Example

import { getName } from '@tauri-apps/api/app';
const appName = await getName();

Since: 1.0.0

Returns: Promise<string>

getTauriVersion

getTauriVersion(): Promise<string>

Gets the Tauri version.

Example

import { getTauriVersion } from '@tauri-apps/api/app';
const tauriVersion = await getTauriVersion();

Since: 1.0.0

Returns: Promise<string>

getVersion

getVersion(): Promise<string>

Gets the application version.

Example

import { getVersion } from '@tauri-apps/api/app';
const appVersion = await getVersion();

Since: 1.0.0

Returns: Promise<string>