/Browsr.JS

Browser detection library

Primary LanguageJavaScript

#Browsr.JS Browsr is a small javascript library (less than 1kb minified!) that detects browser name, version and engine, plus operating system and device type. It's aimed for the most popular platforms and browsers, so don't expect to detect old and unknown browsers. If you want a more complete solution, you can check this.

Inspired by Modernizr, Browsr also places classes on the element and creates a Browsr object for javascript access (try typing "Browsr" on the console).

Right now, Browsr targets:

####Engines:

  • Gecko
  • Presto
  • Trident
  • Webkit

####Browsers:

  • Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

####Operating Systems:

  • Android
  • iPad
  • iPhone
  • iOS
  • Linux
  • Mac OS
  • Windows

####Devices (device type):

  • Mobile (Android, iOS)
  • Desktop (others)

A demo can be found here.