⭐ Favorite Icon
A small library for manipulating the favicon.
Installation
npm install favorite-icon
Using
; FaviconIcon;
API
Favicon.set(src: string | HTMLCanvasElement)
Set the favicon with your own image.
; Favicon; // or Favicon; // or const canvas = document;//...Favicon;
Favicon.reset()
Reset the favicon.
; // ... Favicon;
Browser support
- Chrome: ✅
- Firefox: ✅
- Opera: ✅
- IE: ❌
- Edge: ❌
- Safari: ❌ (Safari hides favicons)
License
MIT License