Skip to content
Tauri

platform

platform(): Platform

Defined in: index.ts:79

Returns a string describing the specific operating system in use. The value is set at compile time. Possible values are 'linux', 'macos', 'ios', 'freebsd', 'dragonfly', 'netbsd', 'openbsd', 'solaris', 'android', 'windows'

Platform

import { platform } from '@tauri-apps/plugin-os';
const platformName = platform();

2.0.0


© 2025 Tauri Contributors. CC-BY / MIT