# quantize-type-2

> TypeScript definitions for quantize

Latest version **1.0.5** (published 2023-04-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install quantize-type-2
pnpm add quantize-type-2
yarn add quantize-type-2
bun add quantize-type-2
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-04-04 |
| First published | 2023-04-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | handoiditu1508 |

## Links

- npm: https://www.npmjs.com/package/quantize-type-2
- npm.io page: https://npm.io/package/quantize-type-2

## Recent versions

- 1.0.5 (latest) — 2023-04-04
- 1.0.4 — 2023-04-04
- 1.0.3 — 2023-04-04

## README

## Quickstart

**1. Install**

```shell
npm install --save-dev quantize-type
```

**2. Usage**

```javascript
import quantize from "quantize";

const arrayOfPixels = [[190, 197, 190], [202, 204, 200], [207, 214, 210], [211, 214, 211], [205, 207, 207]];
const maximumColorCount = 4;

const colorMap = quantize(arrayOfPixels, maximumColorCount);
```

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