Favicons generator for Node.js
A Node.js module for generating favicons and their associated files. Originally built for Google's Web Starter Kit and Catalyst. Installed through NPM with:
npm install favicons
To use Favicons, require the appropriate module and call it, optionally specifying configuration and callback objects. A sample is shown on the right. The full list of options can be found on GitHub.
Favicons generates its icons locally using pure Javascript with no external dependencies.
Please note: Favicons is tested on Node 14 and above.
…
The default sources are as follow (groupped by platform):
…
You can programmatically access Favicons configuration (icon filenames, HTML, manifest files, etc) with:
import { config } from "favicons";
Below you will find a simple working example to generate an output. Amend the src, dest, htmlBasename and configuration constants to suit your own needs.
…
Why are you missing certain favicons?
Because pure Javascript modules aren't available at the moment. For example, the El Capitan SVG favicon and the Windows tile silhouette ability both require SVG support. If modules for these task begin to appear, please jump on the appropriate issue and we'll get on it ASAP.
Feel free to push your code if you agree with publishing under the MIT license.
When testing, don't forget to update snapshots whenever you edit them: npm test -- -u.
No open issues yet, or sync has not completed.