favorite

Get a website's favicon.

Usage no npm install needed!

<script type="module">
  import favorite from 'https://cdn.skypack.dev/favorite';
</script>

README

favorite

MIT License Build Status Code Climate NPM Downloads NPM Dependencies Code Documentation

Node.js library to get favicons.

Installation

Basic: npm install favorite

As Dependency: npm install favorite --save

Require in Node: var favorite = require('favorite');

Methods

get (String url, Function callback)

Returns the website's favicon.

Example:

favorite.get('https://nodejs.org', function (err, data) {
    console.log(err, data);
});
// null, 'https://nodejs.org/favicon.ico'