favicon-hritik
v1.0.0
Published
A simple and powerful favicon generator that can be injected into any project.
Maintainers
Readme
favicon-hritik
A professional favicon generator that can be easily integrated into any web project. It converts any image (PNG, JPG, SVG) into a complete set of favicons for various platforms.
Installation
npm install favicon-hritikUsage
Simply add a container with a specific ID in your HTML, and initialize the generator in your JavaScript.
1. HTML
<div id="FavoconHritik"></div>2. JavaScript
import FaviconHritik from 'favicon-hritik';
const generator = new FaviconHritik('FavoconHritik');
generator.init();Features
- Drag & Drop: Easy image upload.
- Auto-Resizing: Generates 512px, 192px, 180px, 48px, 32px, and 16px icons.
- ZIP Export: Download the entire set along with a
site.webmanifest. - Live Apply: Test the 16x16 favicon on your current page instantly.
- Code Snippet: Get the HTML tags needed for your project's
<head>. - Self-Contained: Automatically injects its own styles and UI.
Requirements
- Uses JSZip for ZIP generation (automatically handled if using a bundler).
License
MIT © Hritik
