Minimal Browser Detection JavaScript Library – BDL.js

Category: Javascript | November 12, 2022
Author:b3yc0d3
Views Total:101 views
Official Page:Go to website
Last Update:November 12, 2022
License:MIT

Preview:

Minimal Browser Detection JavaScript Library – BDL.js

Description:

A lightweight and fast browser detection library to quickly get a visitor’s browser name, browser vendor, and browser ID.

Browsers:

  • Brave
  • Chrome
  • DuckDuckGo
  • Edge
  • Edge (Chromium)
  • Firefox
  • Internet Explorer
  • Opera
  • Safari

How to use it:

1. Download and load the bdl.min.js in the document.

<script src="./build/bdl.min.js"></script>

2. Get the current user’s browser information.

// browser name
bdl.browser.name
// browser vendor.
bdl.browser.vendor
// browser id (internal used)
bdl.browser.id

Changelog:

v1.1.0 (11/12/2022)

  • Added support for DuckDuckGo browser

You Might Be Interested In:


Leave a Reply