ua-parser
Source: index.js
- uaParser.parseUA
- uaParser.parseEngine
- uaParser.parseOS
- uaParser.parseDevice
- uaParser.parse
- uaParser.loadSync
- uaParser.load
- uaParser.watch
Parse the User-Agent string
str
for User-Agent
Parameters:
{string} str
- Browsers User-Agent string
Return:
{Object}
- { family:, major:, minor:, patch: }
Parse the User-Agent string
str
for Engine
Parameters:
{string} str
- Browsers User-Agent string
Return:
{Object}
- { family:, major:, minor:, patch: }
Parse the User-Agent string
str
for Operating System
Parameters:
{string} str
- Browsers User-Agent string
Return:
{Object}
- { family:, major:, minor:, patch:, patchMinor: }
Parse the User-Agent string
str
for Device
Parameters:
{string} str
- Browsers User-Agent string
Return:
{Object}
{ family:, brand:, model: }
Parse the User-Agent string
str
for User-Agent, Operating System, Device
Parameters:
{string} str
- Browsers User-Agent string
Return:
{Object}
- { family:, brand:, model: }
Synchronously load the ua-parsers regexes file
Parameters:
{Object | string} options
- (optional) if "undefined" than default file is choosen. If string is given than that file is used.
Return:
{Boolean}
true if file was loaded otherwise false.
Asynchronously load the ua-parsers regexes file
Parameters:
-
{Object | string} options
- (optional) if "undefined" than default file is choosen. If string is given than that file is used. -
{Function} callback
- callback(error)
Watch a regexes file and reload if there are any changes
Parameters:
-
{Object | string} options
- (optional) if "undefined" than default file is choosen. If string is given than that file is used. -
{Function} callback
- callback(error)
—generated by apidox—