A lightweight package to quickly retrieve a favicon URL for any website using the Icon Horse service. Current stable version is 1.0.0. It provides a simple function that accepts a hostname or full URI and returns a direct favicon URL. Supports optional size, fallback text/background color, and API key for advanced features. Differentiator: minimal API and zero external dependencies beyond the network service.
npm install favicon-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the function and get a favicon URL for a given hostname.
Understand that the result is a URL; use further HTTP requests to fetch the icon if needed.
Ensure network access to icon.horse.
Provide a valid API key from Icon Horse when using size or fallback options.
Run `npm install favicon-fetch` and ensure import is correct.
Use `import faviconFetch from 'favicon-fetch'` or `const faviconFetch = require('favicon-fetch')`.No dependency data recorded yet.