@tauri-apps/plugin-os
Esta página aún no está disponible en tu idioma.
Provides operating system-related utility methods and properties.
Type Aliases
Arch
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L42
Family
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L97
OsType
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L40
Platform
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L28
Functions
arch()
Returns the current operating system architecture.
Possible values are 'x86'
, 'x86_64'
, 'arm'
, 'aarch64'
, 'mips'
, 'mips64'
, 'powerpc'
, 'powerpc64'
, 'riscv64'
, 's390x'
, 'sparc64'
.
Returns
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L138
eol()
Returns the operating system-specific end-of-line marker.
\n
on POSIX\r\n
on Windows
Returns
string
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L62
exeExtension()
Returns the file extension, if any, used for executable binaries on this platform. Possible values are 'exe'
and ''
(empty string).
Returns
string
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L152
family()
Returns the current operating system family. Possible values are 'unix'
, 'windows'
.
Returns
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L109
hostname()
Returns the host name of the operating system.
Returns
Promise
<string
| null
>
Example
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L181
locale()
Returns a String with a BCP-47
language tag inside. If the locale couldn’t be obtained, null
is returned instead.
Returns
Promise
<string
| null
>
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L169
platform()
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'
Returns
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L79
type()
Returns the current operating system type. Returns 'linux'
on Linux, 'macos'
on macOS, 'windows'
on Windows, 'ios'
on iOS and 'android'
on Android.
Returns
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L123
version()
Returns the current operating system version.
Returns
string
Example
Since
2.0.0
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/os/guest-js/index.ts#L93
© 2024 Tauri Contributors. CC-BY / MIT