UNPKG

woothee

Version:

User-Agent string parser (js implementation)

60 lines (51 loc) 1.68 kB
# Firefox + Firefox OS - target: 'Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0' name: Firefox version: '18.0' os: Firefox OS category: smartphone # Firefox + Firefox OS Tablet - target: 'Mozilla/5.0 (Tablet; rv:26.0) Gecko/18.0 Firefox/26.0' name: Firefox version: '26.0' os: Firefox OS os_version: '26.0' category: smartphone # IEMobile + Windows Phone - target: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.5; Trident/3.1; IEMobile/7.0; FujitsuToshibaMobileCommun; IS12T; KDDI)' name: Internet Explorer version: '7.0' os: Windows Phone OS os_version: '7.5' category: smartphone # IEMobile + Windows Phone - target: 'Mozilla/5.0 (Windows Phone 8.1; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 930) like Gecko' name: Internet Explorer version: '11.0' os: Windows Phone OS os_version: '8.1' category: smartphone # IE + Windows CE - target: 'Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.7) S12HT' name: Internet Explorer version: '6.0' os: Windows CE category: smartphone # Opera Mini + BlackBerry - target: 'Opera/9.80 (BlackBerry; Opera Mini/6.5.27548/26.1305; U; ja) Presto/2.8.119 Version/10.54' name: Opera version: '10.54' os: BlackBerry category: smartphone # BlackBerry - target: 'BlackBerry9700/5.0.0.1014 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/220' name: UNKNOWN os: BlackBerry os_version: '5.0.0.1014' category: smartphone # BlackBerry 10 - target: 'Mozilla/5.0 (BB10; Touch) AppleWebKit/537.35+ (KHTML, like Gecko) Version/10.3.1.2243 Mobile Safari/537.35+' name: Safari os: BlackBerry 10 os_version: '10.3.1.2243' category: smartphone