favicon 1.0.13
favicon: ^1.0.13 copied to clipboard

Dart native js
Flutter Android iOS Linux macOS web Windows

Library for finding favicons in a website, either in a <link> or by predefined URL.

example/favicon_example.dart

import 'package:favicon/favicon.dart';

main() async {
  var urls = [
    'https://www.aftonbladet.se',
    'https://www.braziltravelblog.com',
    'https://www.mashable.com',
    'https://tradevenue.se/miljonarinnan30',
    'https://github.com/',
    'https://www.businessinsider.com/',
    'https://www.mrmoneymustache.com/',
    'https://thedividendstory.com/',
    'http://dailybeast.com',
    'https://www.traveldailynews.com/',
    'https://www.tenable.com/blog-rss',
    'http://blog.tenablesecurity.com/atom.xml', // Should fail and yield null
    'https://hbr.org/',
    'http://benfrain.com/',
    'http://www.alistapart.com',
    'https://fortune.com/',
    'https://tidochpengar.se/'
  ];

  for (var url in urls) {
    print(url);
    print(await Favicon.getBest(url));
    print('');
  }
}
4
likes
100
pub points
70%
popularity

Library for finding favicons in a website, either in a <link> or by predefined URL.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

majohansson@gmail.com

License

MIT (LICENSE)

Dependencies

html, http, image

More

Packages that depend on favicon