# png-unique-colors

> ``` const pngUniqueColors = require('png-unique-colors') const colors = await pngUniqueColors('path/to/image.png') // buffer also available // 79766 ```

Latest version **1.0.2** (published 2020-04-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install png-unique-colors
pnpm add png-unique-colors
yarn add png-unique-colors
bun add png-unique-colors
```

## 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.2 |
| Published | 2020-04-10 |
| First published | 2019-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 377.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kunihiko Miyanaga |
| Maintainers | miyanaga |

## Links

- npm: https://www.npmjs.com/package/png-unique-colors
- npm.io page: https://npm.io/package/png-unique-colors

## Dependencies (1)

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

## Recent versions

- 1.0.2 (latest) — 2020-04-10
- 1.0.0 — 2019-02-01

## README

JavaScript module to count unique colors of PNG image.

# Usage

```
const pngUniqueColors = require('png-unique-colors')
const colors = await pngUniqueColors('path/to/image.png') // buffer also available
// 79766
```

It is same as ImageMagick identify command output.

```
identify -verbose -unique path/to/image.png | grep Colors:
# Colors: 79766
```

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