favcolor
v0.3.1
Published
Get dominant color of a favicon by giving a site url.
Downloads
9
Maintainers
Readme
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