js-os-info
v1.0.0
Published
> Custom tool for os info.
Downloads
1
Readme
js-os-info
Custom tool for os info.
Build Setup
install dependencies
npm i js-os-info
Readme
1. import osInfo from 'js-os-info'
2. // test OS info
osInfo.update()
3. if(osInfo.isSurface){
console.log('it is surface')
}
os info type
os
browser
onLine
language
canvasAble
file
fileSystem
webgl
worker
cookieEnabled
msPointerable
touchable
maxTouchPoints
isSurface
localStorage
requestAnimationFrameAble
os info api
update: 更新检测
isPC:
getBrowser