Get started with bowser CDN

MIT licensed

Bowser library identifies browser and version for user agent detection.

Tags:
  • browser
  • useragent
  • user-agent
  • parser
  • ua
  • detection
  • ender
  • sniff

Stable version

Copied!

How to start using bowser CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with bowser CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/bowser/2.11.0/bundled.js"></script>
  <script>
    window.onload = function() {
      const browser = new Bowser();
      const userAgent = browser.getUserAgent();
      const browserName = browser.getBrowserName();
      const browserVersion = browser.getVersion();

      console.log(`User Agent: ${userAgent}`);
      console.log(`Browser Name: ${browserName}`);
      console.log(`Browser Version: ${browserVersion}`);
    };
  </script>
</head>
<body>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!

All versions