@realfavicongenerator/check-favicon
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

check-favicon

A TypeSCript library to check the favicon of a website.

Install:

npm install @realfavicongenerator/check-favicon node-html-parser

Usage:

import { parse } from 'node-html-parser'

const body = fs.readFileSync('some_page.html');

const root = parse(body);
const head = root.querySelector('head');

const desktopFaviconReport = await checkDesktopFavicon(pageUrl, head);
const touchIconFaviconReport = await checkTouchIcon(pageUrl, head);
const webAppManifestFaviconReport = await checkWebAppManifest(pageUrl, head);

console.log("Analysis and icons", desktopFaviconReport, touchIconFaviconReport, webAppManifestFaviconReport);

Package Sidebar

Install

npm i @realfavicongenerator/check-favicon

Weekly Downloads

17

Version

0.2.2

License

ISC

Unpacked Size

233 kB

Total Files

54

Last publish

Collaborators

  • phbernard