# rgbcolor

> A module to parse color values

Latest version **1.0.1** (published 2017-04-26) · MIT OR SEE LICENSE IN FEEL-FREE.md license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-04-26 |
| First published | 2012-12-14 |
| Weekly downloads | 0 |
| License | MIT OR SEE LICENSE IN FEEL-FREE.md |
| TypeScript types | separate (@types/rgbcolor) |
| Module format | CommonJS |
| Node | >= 0.8.15 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Sebastian Vollnhals |
| Maintainers | yetzt |
| Keywords | rgb, color, rgbcolor |

## Links

- npm: https://www.npmjs.com/package/rgbcolor
- Repository: https://github.com/yetzt/node-rgbcolor
- Homepage: https://github.com/yetzt/node-rgbcolor#readme
- Issues: https://github.com/yetzt/node-rgbcolor/issues
- npm.io page: https://npm.io/package/rgbcolor

## 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.1 (latest) — 2017-04-26
- 1.0.0 — 2016-09-06
- 0.0.6 — 2016-09-01
- 0.0.5 — 2016-08-31
- 0.0.4 — 2015-02-10
- 0.0.3 — 2013-06-10
- 0.0.2 — 2013-06-03
- 0.0.1 — 2012-12-14

## README

# node-rgbcolor

A nodejs module to parse color values
Based on rgbcolor.js by Stoyan Stefanov <sstoo@gmail.com>
http://www.phpied.com/rgb-color-parser-in-javascript/

## Usage
```` js
var RGBColor = require('rgbcolor');

var color = new RGBColor('darkblue');

if (color.ok) { // 'ok' is true when the parsing was a success
    // log channels
    console.log(color.r + ', ' + color.g + ', ' + color.b);
    // log HEX and RGB
    console.log(color.toHex());
    console.log(color.toRGB());
}
````

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