# simple-hex-to-rgb

> Provides a function that converts hex colors to RGB and vice versa

Latest version **1.0.0** (published 2018-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-hex-to-rgb
pnpm add simple-hex-to-rgb
yarn add simple-hex-to-rgb
bun add simple-hex-to-rgb
```

## 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.0 |
| Published | 2018-06-26 |
| First published | 2018-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | t.lombart97@gmail.com |
| Maintainers | thomlom |
| Keywords | color, hex, rgb, convert |

## Links

- npm: https://www.npmjs.com/package/simple-hex-to-rgb
- Repository: https://github.com/thomlom/coding-challenges/tree/master/coding-challenge-6/Q3
- npm.io page: https://npm.io/package/simple-hex-to-rgb

## 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.0 (latest) — 2018-06-26

## README

# simple-hex-to-rgb

Provides a function that converts hex colors to RGB and vice versa

## Usage

First, install the package using npm:

    npm install simple-hex-to-rgb --save

Then, require the package and use it like so:

    const convert = require('simple-hex-to-rgb');

    console.log(convert("#2f27ab")); // rgb(47, 39, 171)
    console.log(convert("rgb(47, 39, 171)")); // #2f27ab

## License

MIT

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