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