ua-parser-js icon indicating copy to clipboard operation
ua-parser-js copied to clipboard

Parse data for search engine user-agent

Open mittalyashu opened this issue 2 years ago • 0 comments

It is not parsing the user-agent from search-engines.

User agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/93.0.4577.82 Safari/537.36

Output:

{
  ua: 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/93.0.4577.82 Safari/537.36',
  browser: { name: 'Chrome', version: '93.0.4577.82', major: '93' },
  engine: { name: 'Blink', version: '93.0.4577.82' },
  os: { name: undefined, version: undefined },
  device: { vendor: undefined, model: undefined, type: undefined },
  cpu: { architecture: undefined }
}

mittalyashu avatar Sep 17 '21 05:09 mittalyashu