0.4.7 • Published 6 months ago

@realfavicongenerator/check-favicon v0.4.7

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

@realfavicongenerator/check-favicon

A TypeSCript library to check the favicon of a website. This library is used by the favicon checker of RealFaviconGenerator.

The checker analyzes an HTML page to produce a report, platform per platform (desktop, iOS, Web app manifest). The report contains logs, warnings and errors messages, along with the icons themselves.

Install:

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

Usage:

import { parse } from 'node-html-parser'
import { checkDesktopFavicon, checkTouchIcon, checkWebAppManifest } from '@realfavicongenerator/check-favicon'

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.4.7

6 months ago

0.4.6

6 months ago

0.4.5

6 months ago

0.4.3

6 months ago

0.4.0

8 months ago

0.3.0

11 months ago

0.3.2

11 months ago

0.2.7

12 months ago

0.1.2

1 year ago

0.2.0

1 year ago

0.2.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago