Simple & Quick Favicons Generator.
Give a input SVG File. It gives six favicon files that covers most needs.
Run the script using npx
and provide your SVG file as input:
npx @mynaui/favicons [path-to-your-svg-file]
or using bun:
bunx @mynaui/favicons [path-to-your-svg-file]
--input
or-i
: Specify the input SVG file.--quality
or-q
: Set the quality of the PNG images (default is 85).--name
or-n
: Set the name for the manifest file (default is 'TODO').
Example:
npx @mynaui/favicons --input your_icon.svg --quality 90 --name "Your App Name"
The script will generate the following files in the same directory as the input SVG:
favicon.ico
favicon-optimized.svg
apple-touch-icon.png
icon-192.png
icon-512.png
manifest.webmanifest
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under MIT.