1.8.0 • Published 7 years ago

mario v1.8.0

Weekly downloads
1,473
License
-
Repository
github
Last release
7 years ago

Mario

This is a fork of https://github.com/ded/bowser.

A Browser detector. Because sometimes, there is no other way, and not even good modern browsers always provide good feature detection mechanisms.

So... it works like this:

if (mario.msie && mario.version <= 6) {
  alert('Hello China');
}

Detected BrowsersEngines

Detected mobile operating systems

  • android
  • ios (iphone/ipad/ipod)

Android and iOS both report the osversion field, containing the OS version number reported in the UA string. Windows Phone is recognized as mobile, is reported as msie. Other mobile OS'es (e.g. Blackberry, Windows RT/8) may be added later.

All known mobile OS'es, plus any that report as 'Touch' or similar, will report touch as true.

Notes

Safari, Chrome, and Firefox will report that they have webkit|gecko engines

if (mario.webkit) {
  // do stuff with safari & chrome
}
1.8.0

7 years ago

1.7.2

9 years ago

1.7.1

9 years ago

1.7.0

9 years ago

1.6.0

10 years ago

1.5.3

10 years ago

1.5.2

10 years ago

1.5.1

10 years ago

1.5.0

10 years ago

1.4.7

10 years ago

1.4.6

10 years ago

1.4.3

10 years ago

1.4.2

10 years ago

1.4.5

10 years ago

1.4.4

10 years ago

1.4.1

11 years ago

1.4.0

11 years ago

1.3.1

11 years ago

1.3.0

11 years ago

1.2.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago