Skip to main content

app

@tauri-apps/api / app

Module: app

Get application metadata.

This package is also accessible with window.__TAURI__.app when tauri.conf.json > build > withGlobalTauri 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();

Returns

Promise<string>

A promise resolving to application name.

Defined in

app.ts:43


getTauriVersion

getTauriVersion(): Promise<string>

Gets the tauri version.

example

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

Returns

Promise<string>

A promise resolving to tauri version.

Defined in

app.ts:63


getVersion

getVersion(): Promise<string>

Gets the application version.

example

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

Returns

Promise<string>

A promise resolving to the application version.

Defined in

app.ts:24