@sharoussh/favicon-generator-cli
v1.0.0
Published
Zero-dependency CLI to generate favicons from text or emoji
Maintainers
Readme
favicon-generator-cli
Zero-dependency CLI to generate SVG favicons from text, initials, or emoji — with HTML snippet and web manifest included.
Install
npm install -g favicon-generator-cliOr run without installing:
npx favicon-generator-cli --name "My App"Usage
# From app name (auto-extracts initials)
favicon-gen --name "My App"
# Custom text or emoji
favicon-gen --text "🚀"
favicon-gen --text "AB"
# Custom colors
favicon-gen --name "Firebase" --bg "#ff6600" --color "#ffffff"
# Custom output folder
favicon-gen --name "My App" --out ./publicOutput files
favicons/
├── favicon.svg ← main favicon (64x64)
├── favicon-32.svg ← small favicon (32x32)
├── favicon-192.svg ← PWA icon
├── favicon-512.svg ← PWA splash icon
├── apple-touch-icon.svg ← iOS home screen icon
├── html-snippet.html ← paste into your <head>
└── site.webmanifest ← PWA manifestHTML snippet (auto-generated)
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.svg">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.svg">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#4f46e5">Options
| Flag | Description | Default |
|------|-------------|---------|
| --name=TEXT | App name (auto-extracts initials) | — |
| --text=TEXT | Custom text or emoji (max 2 chars) | — |
| --bg=COLOR | Background color (hex) | #4f46e5 |
| --color=COLOR | Text color (hex) | #ffffff |
| --radius=N | Corner radius | 12 |
| --out=DIR | Output directory | ./favicons |
| --no-manifest | Skip web manifest | off |
| --no-html | Skip HTML snippet | off |
| --help | Show help | — |
Running tests
npm testLicense
MIT
