1.0.0 • Published 5 years ago
js-os-info v1.0.0
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
1.0.0
5 years ago