본문으로 건너뛰기

app

@tauri-apps/api / app

Module: 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();

Returns

Promise<string>

A promise resolving to application name.


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.


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.