renancouto / Browsr.JS

Browser detection library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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.

About

Browser detection library


Languages

Language:JavaScript 100.0%