Skip to content

Extensions Submodule > Fetchers > FlipboardProxy

FlipboardProxy ​

  • Developer: Flipboard
  • BrowserType: fetcher

User-Agent Examples ​

sh
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0 (FlipboardProxy/1.2; +http://flipboard.com/browserproxy)

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 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0 (FlipboardProxy/1.2; +http://flipboard.com/browserproxy)').getBrowser();

console.log(browser);
// {name: "FlipboardProxy", version: "1.2", major: "1", type: "fetcher"}

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

References ​

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