4.5.2 • Published 1 month ago

qiao-ua v4.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

qiao-ua

npm version npm downloads

解析 user-agent,返回浏览器,平台,操作系统等信息,fork 自bowser(由于 2 年没有维护),并做了一些改动

install

安装

npm i qiao-ua

use

使用

// cjs
const ua = require('qiao-ua');

// mjs
import ua from 'qiao-ua';

ua

ua

  • useragent
    • 类型: string
    • 说明: useragent
  • return
    • 类型: object
    • 说明: 结果
    • {
        browser: { name: 'Chrome', version: '106.0.0.0' },
        os: { name: 'macOS', version: '10.15.7', versionName: 'Catalina' },
        platform: { type: 'desktop', vendor: 'Apple' },
        engine: { name: 'Blink' },
        isMobile: false
      }
const res = ua(useragent);
4.5.2

1 month ago

3.7.3

3 months ago

3.5.7

7 months ago

3.5.3

8 months ago

3.0.1

1 year ago

3.0.6

12 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.1

2 years ago