@cxy227/browser-detection

0.1.9 • Public • Published

Browser Detection

npm version npm downloads jsdelivr downloads License twitter-href

😊 项目介绍

使用用户代理进行浏览器版本检测

演示

📖 如何使用

browser-detection 非常好用,直接引用js文件即可

<script src="https://cdn.jsdelivr.net/npm/@cxy227/browser-detection@0.1.1/dist/index.js"></script>

const bd = new browserDetection()

// output
{
  info: {
    name: 'Chrome',
    version: '94',
    os: 'Mac OS X
  }
}
<script id="drowserDetection" data-check="auto" src="https://cdn.jsdelivr.net/npm/@cxy227/browser-detection@0.1.3/dist/index.js"></script>

🧰 开发测试

● npm run dev

📄 证书(License)

MIT License

Copyright (c) beth

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @cxy227/browser-detection

    Weekly Downloads

    0

    Version

    0.1.9

    License

    MIT

    Unpacked Size

    37.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • cxy227