@effective/favicon

1.0.1 • Public • Published

Effective Favicon Generator

A small generator for a modern set of typical favicons. Expected a folder of svg files (only one is okay as well) and generates the variants suggested by How to Favicon in 2023: Six files that fit most needs automatically.

Usage

effective-favicon <directory>

Expects one or many SVG files somewhere in this directory. It writes all output files using the same base name but with different postfixes/extensions e.g.:

Source: icon-myproduct.svg Output:

  • SVG Icon: icon-opt.svg optimized SVG of source image.
  • Classic Favicon: icon-myproduct.ico with 16px and 32px icons embedded.
  • Apple Touch Icon: icon-myproduct-180.png
  • Web Manifest: icon-myproduct-192.png + icon-myproduct-512.png

Tech Stack

  • sharp for image resizing/conversion
  • pngquant for PNG optimization
  • png-to-ico for ICO file generation
  • svgo for SVG optimization

License

Apache License; Version 2.0, January 2004

Copyright

Logo of Sebastian Software GmbH, Mainz, Germany

Copyright 2023
Sebastian Software GmbH

Package Sidebar

Install

npm i @effective/favicon

Weekly Downloads

74

Version

1.0.1

License

Apache-2.0

Unpacked Size

18.6 kB

Total Files

7

Last publish

Collaborators

  • swernerx