Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

Latest commit

 

History

History
29 lines (22 loc) · 1.12 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.12 KB

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'