# favcolor

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

Latest version **0.3.1** (published 2024-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install favcolor
pnpm add favcolor
yarn add favcolor
bun add favcolor
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2024-06-22 |
| First published | 2022-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kastanie |
| Keywords | find, dominant, color, image, favicon |

## Links

- npm: https://www.npmjs.com/package/favcolor
- Repository: https://github.com/CookieKastanie/favcolor
- Homepage: https://github.com/CookieKastanie/favcolor#readme
- Issues: https://github.com/CookieKastanie/favcolor/issues
- npm.io page: https://npm.io/package/favcolor

## Dependencies (1)

- [pngjs](https://npm.io/package/pngjs.md) ^6.0.0

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 0.3.1 (latest) — 2024-06-22
- 0.3.0 — 2023-03-24
- 0.2.0 — 2022-07-30
- 0.1.1 — 2022-07-30
- 0.1.0 — 2022-07-30

## README

# favcolor

Get dominant color of a favicon by giving a site url.

##  Installation
    npm i favcolor

## Usage
```js
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

---
_Source: https://npm.io/package/favcolor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
