Skip to content

Extensions Submodule > Fetchers > Cohere-AI

Cohere-AI ​

  • Developer: Cohere
  • BrowserType: fetcher

User-Agent Examples ​

sh
Mozilla/5.0 (compatible; Cohere-AI/1.0; +https://cohere.com/)

Code Example ​

js
import { UAParser }  from 'ua-parser-js';
import { Fetchers }  from 'ua-parser-js/extensions';
import { Extension } from 'ua-parser-js/enums';

const fetcherParser = new UAParser(Fetchers);
const browser = fetcherParser.setUA('Mozilla/5.0 (compatible; Cohere-AI/1.0; +https://cohere.com/)').getBrowser();

console.log(browser);
// {name: "Cohere-AI", version: "1.0", major: "1", type: "fetcher"}

// Compare using the built-in enum
const { Fetcher } = Extension.BrowserName;
console.log(browser.is(Fetcher.COHERE_AI));
// true

UAParser.js v2 is licensed under AGPLv3 or PRO licenses.