From 43953fc11fb86b97c87ea5f471e57fa3976f66e1 Mon Sep 17 00:00:00 2001 From: Hannes Diercks Date: Fri, 13 Sep 2013 16:19:03 +0200 Subject: [PATCH] Let me risk a little more light. --- README.md | 35 +++++++++++++++++++++++++++++++---- src/useragents.js | 1 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba6e427..1776392 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,25 @@ if (bowser.msie && bowser.version <= 6) { } ``` -Detected Browsers +Detected Browsers and Devices ----- - * msie - * safari[webkit] + * android + * blackberry * chrome[webkit] * firefox[gecko] + * ipad + * iphone + * ipod + * msie * opera + * phantomjs + * safari[webkit] + * seamonkey + * touchpad + * webos + * windows phone + Notes ---- @@ -60,4 +71,20 @@ else if (bowser.c) { } else { // unsupported (bowser.x) -} \ No newline at end of file +} +``` + +Building +-------- + +Simply `$ npm install` and `$ make` inside the bowser folder. + + +Testing +------- +We started a list `src/useragents.js` with example user agents and their expected bowser object. + +Whenever you add support for new browsers or notice a bug / mismatch, please update the list and +check if all tests are still passing. + +To run the test call `$ make test` and hope for green light ;) \ No newline at end of file diff --git a/src/useragents.js b/src/useragents.js index 301502f..e11fc2e 100644 --- a/src/useragents.js +++ b/src/useragents.js @@ -1,5 +1,6 @@ /** * Example User Agents and thair expected bowser objects. + * Most of them where found at http://www.useragentstring.com/ * * @see test/test.js * @author hannes.diercks@jimdo.com