# colornamer

> A simple package that gives back the color-name of a hex or rgb value

Latest version **1.0.9** (published 2018-09-23) · ISC license · 0 weekly downloads

## Install

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

## 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.9 |
| Published | 2018-09-23 |
| First published | 2017-09-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 35.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | lmhyphenn, mathuramg |
| Keywords | color, accessible, accessibility, visually-impaired, visually-challenged |

## Links

- npm: https://www.npmjs.com/package/colornamer
- npm.io page: https://npm.io/package/colornamer

## 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.9 (latest) — 2018-09-23
- 1.0.8 — 2018-06-08
- 1.0.7 — 2018-02-08
- 1.0.6 — 2018-01-30
- 1.0.5 — 2018-01-17
- 1.0.4 — 2017-11-13
- 1.0.3 — 2017-10-12
- 1.0.2 — 2017-10-11
- 1.0.1 — 2017-10-10
- 1.0.0 — 2017-09-23

## README

# colornamer
A simple npm module/js client library that gives back the color-name of a hex or rgb value. 

Created to provide accessible color names to people who are blind and visually impaired as part of the p5 accessible canvas project (https://github.com/processing/p5.accessibility) for the p5.js web editor (https://github.com/processing/p5.js-web-editor).

## NPM module
For use with Node.js: `npm install colornamer`

	var color = require('colornamer');
	
	color.rgbColorName(255,0,0); //returns red
	color.hexColorName('ff0000'); //returns red



## Client library

  Link to the library in your html: https://rawgit.com/lm-n/color-namer/master/lib/colorNamer.js
  <br>
  Use the following functions to get a color name:
  <br>
  `rgbColorName(255,0,0); //returns red`
  the expected input is three ints
  <br>
  `hexColorName('ff0000'); //returns red`
  the expected input is a string of six characters without "#" at the beginning

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