/node-get-favicons

Get `favicon`s, `apple-touch-icon` or anything website icons

Primary LanguageHTMLMIT LicenseMIT

Get Favicons

Get favicons, apple-touch-icon or something else from any website or HTML.

Usage

API

Get all favicons from example.com

const getFavicons = require('node-get-favicons');

getFavicons.byUrl('https://google.com').then((favicons) => {
  console.log(favicons);
  // [{
  //   type: 'icon',
  //   imgType: null,
  //   href: 'https://google.com/images/branding/product/ico/googleg_lodp.ico',
  //   sizes: null
  // }]
});

License

MIT © Michael Danilov