Helpers Submodule
Import from 'ua-parser-js/helpers'
List of Built-in Helpers:
Check whether user-agent string match with reduced/frozen user-agent pattern
List of Deprecated Methods (since v2.0.7):
getDeviceVendor(),isAppleSilicon()=> moved todevice-detectionisAIBot(),isBot()=> moved tobot-detectionisChromeFamily(),isElectron(),isFromEU(),isStandalonePWA()=> moved tobrowser-detection
Code Example
js
import { isFrozenUA } from 'ua-parser-js/helpers';
const regularMobileUA = "Mozilla/5.0 (Linux; Android 9; SM-A205U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.1234.56 Mobile Safari/537.36";
const freezedMobileUA = "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.0.0 Mobile Safari/537.36";
console.log(isFrozenUA(regularMobileUA));
// false
console.log(isFrozenUA(freezedMobileUA));
// true