@realfavicongenerator/check-favicon
Version:
Check the favicon of a website
9 lines (8 loc) • 719 B
TypeScript
import { CheckerMessage, DesktopFaviconReport, Fetcher, GoogleReport } from "./types";
import { HTMLElement } from "node-html-parser";
export declare const GoogleBot = "Googlebot";
export declare const GoogleImageBot = "Googlebot-Image";
export declare const getRobotsFileUrl: (baseUrl: string) => string;
export declare const checkRobotsFile: (baseUrl: string, iconUrls: string[], fetcher?: Fetcher) => Promise<CheckerMessage[]>;
export declare const checkGoogleFaviconFromDesktopReport: (baseUrl: string, desktopReport: DesktopFaviconReport, fetcher?: Fetcher) => Promise<GoogleReport>;
export declare const checkGoogleFavicon: (baseUrl: string, head: HTMLElement | null, fetcher?: Fetcher) => Promise<GoogleReport>;