Extensions Submodule > Fetchers > virustotal
virustotal
- Developer: VirusTotal
- BrowserType:
fetcher
User-Agent Examples
sh
AppEngine-Google; (+http://code.google.com/appengine; appid: s~virustotalcloud)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('AppEngine-Google; (+http://code.google.com/appengine; appid: s~virustotalcloud)').getBrowser();
console.log(browser);
// {name: "virustotal", type: "fetcher"}
// Compare using the built-in enum
const { Fetcher } = Extension.BrowserName;
console.log(browser.is(Fetcher.VIRUSTOTAL));
// true