Skip to content

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

valueintroduce
macos苹果
windowswindows
linuxLinux

Contributors

xiaoMan
xiaoMan

💻 📖 🎨
yanzibiezou
yanzibiezou

💻
徐轲
徐轲

💻
yinxing233
yinxing233

💻
Add your contributions