0.0.2 • Published 2 years ago

get-popular-browser-info v0.0.2

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

install

npm install -S get-popular-browser-info

use

import getPopularBrowserInfo from 'get-popular-browser-info'
const popularBrowserInfo = getPopularBrowserInfo('your project name')
then upload popularBrowserInfo object to your server

if you want to use other js type, find in 'get-popular-browser-info/dist'

information

propexampledescribe
browserTimestamp1666687780316get client timestamp for compare width server
browserTimezoneOffset-480unit is minute,east is negative,west is positive
browserType"chrome"the last packing browser
browserVersion96main browser version, not include decimal
os"Win10"client system
isMobilefalseis a mobile device
platform"Win32"client platform
language"en"browser using language
clientWidth1500browser window width
clientHeight1000browser window height
screenDirection"landscape"screen "landscape" or "portrait", only mobile device effective
internetSpeed1280internet speed,unit is Kb
supportSessionStoragetruecan use session storage
supportLocalStoragetruecan use local storage
supportIndexDBtruecan use index DB
maxESVersion13from 5 to 13
navigationType0how into this page,equal performance.navigation.type
projectNameyour project namewhen you have more front end projects, it need