windows
Desktop Env
Desktop platform for various-devices
isWindows
platform Desktop
usage
js
import { isWindows } from 'various-devices'
const result = isWindows()
Used to determine whether it is a window platform and can be used in both browsers and electrons.
ts
const isWindows: () => 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 💻 | |||