browser-type
Judging the types of browsers
Install
$ npm install --save @huahao/browser-type
Usage
import { browserType, browserVersion } from '@huahao/browser-type'
console.log(browserType) // Chrome
console.log(browserVersion) // 56
API
browserType | browserVersion |
---|---|
IE | 6, 7, 8, 9, 10, 11 |
Chrome | all version |
Firefox | all version |
Safari | all version |