1.0.1 • Published 2 years ago

@licq/platform v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@licq/platform

获取关于平台的相关信息

NPM version NPM downloads

安装

npm i --save-dev @licq/platform

API

isMac

判断是否是Mac系统 支持浏览器、node.js

Returns: Boolean
Since: 1.0.0
Example

const pf = require('@licq/platform')
const res = pf.isMac()
//==> eg: true/false

isLinux

判断是否是Linux系统 支持浏览器、node.js

Returns: Boolean
Since: 1.0.0
Example

const pf = require('@licq/platform')
const res = pf.isLinux()
//==> eg: true/false

isWin

判断是否是Windows系统 支持浏览器、node.js

Returns: Boolean
Since: 1.0.0
Example

const pf = require('@licq/platform')
const res = pf.isWin()
//==> eg: true/false
1.0.1

2 years ago

1.0.0

2 years ago