# @img/colour

> The ESM-only 'color' package made compatible for use with CommonJS runtimes

Latest version **1.1.0** (published 2026-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @img/colour
pnpm add @img/colour
yarn add @img/colour
bun add @img/colour
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2026-03-01 |
| First published | 2025-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 71.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Maintainers | lovell |
| Keywords | color, colour, cjs, commonjs |

## Links

- npm: https://www.npmjs.com/package/@img/colour
- Repository: https://github.com/lovell/colour
- Homepage: https://github.com/lovell/colour#readme
- Issues: https://github.com/lovell/colour/issues
- npm.io page: https://npm.io/package/@img/colour

## 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.1.0 (latest) — 2026-03-01
- 1.0.0-rc.2 (next) — 2025-09-09
- 1.0.0 — 2025-09-09
- 1.0.0-rc.0 — 2025-09-09

## README

# `@img/colour`

The latest version of the
[color](https://www.npmjs.com/package/color)
package is now ESM-only,
however some JavaScript runtimes do not yet support this,
which includes versions of Node.js prior to 20.19.0.

This package converts the `color` package and its dependencies,
all of which are MIT-licensed, to CommonJS.

- [color](https://www.npmjs.com/package/color)
- [color-convert](https://www.npmjs.com/package/color-convert)
- [color-string](https://www.npmjs.com/package/color-string)
- [color-name](https://www.npmjs.com/package/color-name)

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