favicon
1.1.2, released 3 years ago by an unverified publisher
Scrapes a website for favicons and orders them by image dimensions.
WASM-ready
What it does
Library for finding favicons in a website, either in a <link> tag or by a predefined URL. It validates ICO file signatures, filters file extensions, and sorts the output based on image dimensions.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to fetch and extract favicon icons from a given website URL.
- You want to find the best-sized favicon automatically for a web clip or bookmark feature.
Skip it when
- You need to render or cache the fetched images extensively in the UI.
- You require complex local storage or caching of scraped web assets.
Strengths
- Automatically sorts and selects the best favicon based on image dimensions.
- Validates ICO file signatures and handles relative URLs correctly.
Weaknesses
- Depends entirely on successful web scraping and HTTP responses from target sites.
- Limited to favicon detection and retrieval features.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
import 'package:favicon/favicon.dart';
var iconUrl = await FaviconFinder.getBest('https://www.mashable.com');
print(iconUrl);Alternatives
Packages that do the same job and could replace favicon.
Works with
Packages commonly used together with favicon: ones it builds on, ones built on it, and its own family.