@atlaxt/to-favicon
v1.1.0
Published
Convert any PNG to a multi-size favicon.ico with a single command
Downloads
162
Maintainers
Readme
@atlaxt/favicon
Convert any PNG to a multi-size favicon.ico with a single command — no config, no fuss.
Usage
npx @atlaxt/favicon <path-to-png>Example
# Inside your project's public/ folder
cd public
npx @atlaxt/favicon logo.pngOutput:
Reading → logo.png
Output → /your/project/public/favicon.ico
✔ favicon.ico ready!favicon.ico is saved to wherever you run the command (current working directory).
What it generates
The .ico file embeds three sizes that cover all major browsers and devices:
| Size | Used by | |-------|---------| | 16×16 | Browser tab, bookmarks bar | | 32×32 | Taskbar shortcut, tab title | | 48×48 | Windows site icons |
Requirements
- Node.js 14+
- Input must be a
.pngfile
License
MIT
