mimmi20/browser-detector

View on GitHub
data/factories/platforms.json

Summary

Maintainability
Test Coverage
{
  "rules": {
    "/windows (phone|iot|ce)|microsoft windows; ppc|iemobile|xblwp7|zunewp7|windows ?mobile|wpdesktop|mobile version|lumia| wds |wpos:/i": "windowsmobile",
    "/windows(?! aarch64)|win(10|9|8|7|vista|xp|2000|me|9x|98|95|nt|31|32|16)|barca|the bat!|cygwin|[\\-\\( ]mingw32/i": "windows",
    "/commoncrawler|msie or firefox mutant|not on windows server/i": "unknown",
    "/symb(?:ian|os)|series ?[346]0|s60v[35]|nokia7230/i": "symbian",
    "/maemo|(?<!no)tizen|like android|remix|bada|meego|sailfish|chinese operating system|cos;|\\(cos [0-9]|android; cos/i": "maemo",
    "/(?:net|free|open)bsd|bsd(?!k\\/)|dragonfly/i": "bsd",
    "/web[o0]s|hpwos/i": "webos",
    "/hp-?ux|irix|aix|unix|osf1|openvms/i": "unix",
    "/MIUI/": "android",
    "/kaios/i": "kaios",
    "/yunos|baidu yi|andr[0o]id|aosp|harmonyos|silk|juc ?\\(linux;|adr |gingerbread|ucweb\\/2\\.0 \\(linux;|spreadtrum|vre;|linux; googletv|beyondpod|htc_sensation_z710e|puffin\\/[\\d\\.]+a[tp]/i": "android",
    "/mobilesafari\\/.*cfnetwork/i": "ios",
    "/safari\\/.*cfnetwork/i": "mac",
    "/(?<!FBSN\\/|\\()darwin|cfnetwork/i": "darwin",
    "/sunos|solaris/i": "solaris",
    "/linux|debian|raspbian|ubuntu|suse|fedora|mint|red ?hat|slackware|zenwalk gnu|xentos|(?<!i)cros|windows aarch64|moblin|esx|netcast|kantonix|dillo|gvfs|libvlc|lynx|tinybrowser|akregator|installatron|nettv|hbbtv|smart-tv|x11|qtopia|openpda/i": "linux",
    "/blackberry|bb10; ?(kbd|touch)|rim tablet/i": "rimos",
    "/^Mozilla\\/5\\.0 \\(.*(Mobile|Tablet);.*rv:(\\d+\\.\\d+).*\\) Gecko\\/(\\d+).* Firefox\\/(\\d+\\.\\d+).*/": "firefoxos",
    "/amigaos/i": "amigaos",
    "/like mac os x|ip[ao]d|iphone|cpu i?os|ios;|iuc ?\\(|puffin\\/[\\d\\.]+i[pt]|antenna\\/|antennapod|rss_?radio|podcruncher|audioboom|stitcher\\/ios|captivenetwork|dataaccessd|ios\\.watch/i": "ios",
    "/(?<!devicename:)nokia/i": "symbian",
    "/\\bprofile\\b|gt\\-c3312r|kkt20|lemon b556|spark284|obigo|jasmine\\/1\\.0|netfront|profile\\/midp|j2me\\/|java|mtk[; 0-9]|nucleus|maui runtime|mre|threadx|micromaxx650|dolfin\\/|yuanda50|wap[- ]?browser/i": "java",
    "/mac os x|macintosh|os=mac 10|mac_powerpc|ppc|68k|camino|pubsub|integrity/i": "mac",
    "/palm os|palmsource/i": "palm",
    "/brew|beos|haiku|risc|os\\/2|warp|cp\\/m|nintendo (wii|3ds)|wyderos|liberate|inferno|syllable/i": "genericplatform"
  },
  "generic": "unknown"
}