Skip to content

snowHe2017/js-os-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Custom tool for os info.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published