Linux
Desktop Env
Desktop platform for various-devices
isLinux
platform Desktop
usage
js
import { isLinux } from 'various-devices'
const result = isLinux()
Used to determine whether it is a Linux platform and can be used in both browsers and electrons.
ts
const isLinux: () => boolean
Get the current desktop device
js
import { getDesktop } from 'various-devices'
const result = getDesktop()
getDesktop
return value is one of the following
value | introduce |
---|---|
macos | 苹果 |
windows | windows |
linux | Linux |
Contributors
xiaoMan 💻 📖 🎨 | yanzibiezou 💻 | 徐轲 💻 | yinxing233 💻 | |||