0.2.2 • Published 9 days ago

@realfavicongenerator/check-favicon v0.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
9 days ago

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);
0.1.2

9 days ago

0.2.0

9 days ago

0.2.2

9 days ago

0.1.1

1 month ago

0.1.0

1 month ago

0.0.2

1 month ago

0.0.1

1 month ago