# image-average-colour

> Find the average colour of an image.

Latest version **1.0.0** (published 2019-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install image-average-colour
pnpm add image-average-colour
yarn add image-average-colour
bun add image-average-colour
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-12-24 |
| First published | 2019-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=7.6 |
| Dependencies | 4 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Richie Bendall |
| Maintainers | richienb |
| Keywords | image, colour, average, hex, rgb |

## Links

- npm: https://www.npmjs.com/package/image-average-colour
- Repository: https://github.com/Richienb/image-average-colour
- npm.io page: https://npm.io/package/image-average-colour

## Dependencies (4)

- [pify](https://npm.io/package/pify.md) ^4.0.1
- [rgb-hex](https://npm.io/package/rgb-hex.md) ^3.0.0
- [@sindresorhus/is](https://npm.io/package/@sindresorhus/is.md) ^1.2.0
- [image-average-color](https://npm.io/package/image-average-color.md) ^1.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

- 1.0.0 (latest) — 2019-12-24

## README

# Image Average Colour [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/image-average-colour/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/image-average-colour)

Find the average colour of an image.

[![NPM Badge](https://nodei.co/npm/image-average-colour.png)](https://npmjs.com/package/image-average-colour)

## Install

```sh
npm install image-average-colour
```

## Usage

```js
const imageAverageColour = require("image-average-colour");

(async () => {
    await imageAverageColour("test/image.png")
    //=> { red: 3, green: 3, blue: 3, rgb: 'rgb(3, 3, 3)', hex: '#030303' }
})()
```

## API

### imageAverageColour(path)

#### path

Type: `string`

The path to the image.

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