https://github.com/barisaydinoglu/detectizr
A Modernizr extension to detect device, device model, screen size, operating system, and browser details
https://github.com/barisaydinoglu/detectizr
browser-detection device-detection modernizr
Last synced: 8 months ago
JSON representation
A Modernizr extension to detect device, device model, screen size, operating system, and browser details
- Host: GitHub
- URL: https://github.com/barisaydinoglu/detectizr
- Owner: barisaydinoglu
- License: mit
- Created: 2012-05-07T11:20:59.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2023-06-01T08:26:33.000Z (about 3 years ago)
- Last Synced: 2025-10-03T09:59:52.263Z (9 months ago)
- Topics: browser-detection, device-detection, modernizr
- Language: JavaScript
- Homepage: http://barisaydinoglu.github.io/Detectizr
- Size: 729 KB
- Stars: 413
- Watchers: 30
- Forks: 77
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
README
# Detectizr
[](https://travis-ci.org/barisaydinoglu/Detectizr)
[](https://waffle.io/barisaydinoglu/detectizr)
[](https://david-dm.org/barisaydinoglu/detectizr#info=devDependencies)
[](https://www.jsdelivr.com/package/npm/detectizr)
Detectizr is a Modernizr extension to detect
* device
* device model
* device orientation
* screen size
* operating system
* operating system version
* operating system version full
* browser
* browser version
* browser engine
* browser plugins
Detection of these sets are optional and can be disabled.
Detectable device types are: tv (includes smart tv and game console), mobile, tablet, and desktop.
Device models of tv, mobile and tablet are being detected.
Code quality of Detectizr is validated via [JSLint](http://www.jslint.com "JSLint") & [JSHint](http://www.jshint.com "JSHint").
## Sample Usage
This is a library that uses your trusty little Modernizr to give you the possibility of specifying required features for a certain stylesheet.
Using it is a simple matter, illustrated in the following excerpt:
```html
Detectizr.detect({detectScreen:false});
```
Just remember to include Modernizr before Detectizr, and you're good to go!
Licensed under MIT license.
## Note for Modernizr 3.x
You will need to have a build of Modernizr with the addTest (Modernizr.addTest()) option.
If done from the website, you can find it
## Other interesting projects
* [Modernizr](https://github.com/Modernizr/Modernizr "Modernizr") is required for Detectizer. Remember to put Modernizr before Detectizr.
* [Categorizr](https://github.com/bjankord/Categorizr "Categorizr") is a server side device and OS detection script wirtten in PHP. Detectizr inspired by its device detection.
* [CSS Browser Selector] (http://rafael.adm.br/css_browser_selector/ "CSS Browser Selector") is a client side browser detection script. Detectizr inspired by its browser detection.