Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (18 loc) · 992 Bytes

File metadata and controls

24 lines (18 loc) · 992 Bytes

browser detection

Browser detection script.

github package npm package github ci codecov coverage

Example

<html>
  <head>
    <script type="module">
      import { detectBrowser } from "https://unpkg.com/@jsenv/browser-detection@latest/dist/esmodule/main.js"

      console.log(detectBrowser())
    </script>
  </head>
</html>

See https://codepen.io/dmail/pen/OJyGYPP