Skip to content

BETH-zhang/browser-detection

Repository files navigation

Browser Detection

npm version npm downloads jsdelivr downloads License twitter-href

😊 项目介绍

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

✨ 演示

📖 如何使用

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

<script src="https://cdn.jsdelivr.net/npm/@zhike-private/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/@zhike-private/browser-detection@0.1.3/dist/index.js"></script>

🧰 开发测试

● npm run dev

📄 证书(License)

MIT License

Copyright (c) beth

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published