Extensions Submodule > Fetchers > BingPreview
BingPreview
- Developer: Microsoft
- BrowserType:
fetcher
User-Agent Examples
sh
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534+ (KHTML, like Gecko) BingPreview/1.0bCode 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 (Windows NT 6.1; WOW64) AppleWebKit/534+ (KHTML, like Gecko) BingPreview/1.0b').getBrowser();
console.log(browser);
// {name: "BingPreview", version: "1.0b", major: "1", type: "fetcher"}
// Compare using the built-in enum
const { Fetcher } = Extension.BrowserName;
console.log(browser.is(Fetcher.MICROSOFT_BINGPREVIEW));
// trueReferences
- Bing Preview Bot Information🡥 —Cloudflare Radar
