• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pataar / browser-detect / 23342788798
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: 6.x
DEFAULT BRANCH: main
Ran 20 Mar 2026 12:27PM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Mar 2026 12:27PM UTC coverage: 100.0%. Remained the same
23342788798

push

github

web-flow
feat!: extend browser, OS, device and in-app detection (#11)

BREAKING CHANGE: `isMac()` no longer returns `true` for iOS or iPadOS.
Use the new `isiOS()` method instead. `deviceType()` now returns `TV`,
`Console`, and `Wearable` in addition to the existing values.

New browser detection:
- isBrave(), isVivaldi(), isSamsungBrowser(), isArc(), isDuckDuckGo()

New OS detection:
- isiOS() (split from isMac), isChromeOS(), isHarmonyOS()

New device type detection:
- isTV(), isConsole(), isWearable()

Expanded in-app detection:
- Facebook, Instagram, TikTok, Snapchat, LinkedIn, Telegram, Line,
  Pinterest (in addition to existing WebView, Twitter, WeChat)

Also fixes pre-existing issues:
- iPadOS was not matched by any OS flag
- Samsung Internet was misidentified as Chrome
- Smart TVs, consoles, wearables all defaulted to Desktop
- deviceType() used stringly-typed magic dispatch
- parseVersion() produced dead version string overwritten downstream
- skipBotDetection() called on every request instead of once
- IE match used overly broad 'ie' substring (now word-boundary)
- detectIsInApp() re-fetched agent from payload unnecessarily

53 of 53 new or added lines in 3 files covered. (100.0%)

359 of 359 relevant lines covered (100.0%)

33.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23342788798.1 20 Mar 2026 12:27PM UTC 14
100.0
GitHub Action Run
Source Files on build 23342788798
  • Tree
  • List 14
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23342788798
  • 6e821e7a on github
  • Prev Build on main (#23342419396)
  • Next Build on 6.x (#23342985483)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc