favcolor
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

favcolor

Get dominant color of a favicon by giving a site url.

Installation

npm i favcolor

Usage

const favcolor = require('favcolor');

favcolor.fromImageUrl('https://www.site.com/image.png').then(color => {
    console.log('Color from png url =>', color.toHex());
}).catch(console.error);

favcolor.fromSiteFavicon('https://www.site.com').then(color => {
    console.log('Color from site =>', color.toHex());
}).catch(console.error);

License

MIT

Package Sidebar

Install

npm i favcolor

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

8.38 kB

Total Files

7

Last publish

Collaborators

  • kastanie