# int-to-rgb-x

> Convert an integer to a RGB string.

Latest version **4.1.2** (published 2019-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install int-to-rgb-x
pnpm add int-to-rgb-x
yarn add int-to-rgb-x
bun add int-to-rgb-x
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.2 |
| Published | 2019-08-28 |
| First published | 2017-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.11.4 |
| Dependencies | 2 |
| Unpacked size | 249.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Graham Fairweather |
| Maintainers | xotic750 |
| Keywords | integer, RGB, module, javascript, nodejs, browser |

## Links

- npm: https://www.npmjs.com/package/int-to-rgb-x
- Repository: https://github.com/Xotic750/int-to-rgb-x
- Issues: https://github.com/Xotic750/int-to-rgb-x/issues
- npm.io page: https://npm.io/package/int-to-rgb-x

## Dependencies (2)

- [to-uint-24-x](https://npm.io/package/to-uint-24-x.md) ^4.1.2
- [string-pad-start-x](https://npm.io/package/string-pad-start-x.md) ^2.1.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 4.1.2 (latest) — 2019-08-28
- 4.1.1 — 2019-08-20
- 4.1.0 — 2019-08-14
- 4.0.17 — 2019-07-31
- 4.0.16 — 2019-07-27
- 4.0.15 — 2019-07-27
- 4.0.14 — 2019-07-26
- 4.0.13 — 2019-07-25
- 4.0.12 — 2019-07-24
- 4.0.11 — 2019-07-24
- 4.0.10 — 2019-07-22
- 4.0.9 — 2019-07-21
- 4.0.8 — 2019-07-19
- 4.0.7 — 2019-07-18
- 4.0.6 — 2019-07-18
- … 14 more at https://npm.io/package/int-to-rgb-x/versions

## README

<a
  href="https://travis-ci.org/Xotic750/int-to-rgb-x"
  title="Travis status">
<img
  src="https://travis-ci.org/Xotic750/int-to-rgb-x.svg?branch=master"
  alt="Travis status" height="18">
</a>
<a
  href="https://david-dm.org/Xotic750/int-to-rgb-x"
  title="Dependency status">
<img src="https://david-dm.org/Xotic750/int-to-rgb-x/status.svg"
  alt="Dependency status" height="18"/>
</a>
<a
  href="https://david-dm.org/Xotic750/int-to-rgb-x?type=dev"
  title="devDependency status">
<img src="https://david-dm.org/Xotic750/int-to-rgb-x/dev-status.svg"
  alt="devDependency status" height="18"/>
</a>
<a
  href="https://badge.fury.io/js/int-to-rgb-x"
  title="npm version">
<img src="https://badge.fury.io/js/int-to-rgb-x.svg"
  alt="npm version" height="18">
</a>
<a
  href="https://www.jsdelivr.com/package/npm/int-to-rgb-x"
  title="jsDelivr hits">
<img src="https://data.jsdelivr.com/v1/package/npm/int-to-rgb-x/badge?style=rounded"
  alt="jsDelivr hits" height="18">
</a>
<a
  href="https://bettercodehub.com/results/Xotic750/int-to-rgb-x"
  title="bettercodehub score">
<img src="https://bettercodehub.com/edge/badge/Xotic750/int-to-rgb-x?branch=master"
  alt="bettercodehub score" height="18">
</a>
<a
  href="https://coveralls.io/github/Xotic750/int-to-rgb-x?branch=master"
  title="Coverage Status">
<img src="https://coveralls.io/repos/github/Xotic750/int-to-rgb-x/badge.svg?branch=master"
  alt="Coverage Status" height="18">
</a>

<a name="module_int-to-rgb-x"></a>

## int-to-rgb-x

Convert an integer to a RGB string.

<a name="exp_module_int-to-rgb-x--module.exports"></a>

### `module.exports(i)` ⇒ <code>string</code> ⏏

Takes a number between 0 and 16777215 inclusive and converts it
into 6 digit RGB notation.

**Kind**: Exported function  
**Returns**: <code>string</code> - The RGB hexadecimal notation: "#RRGGBB".

| Param | Type                | Description                               |
| ----- | ------------------- | ----------------------------------------- |
| i     | <code>number</code> | Integer to be converted into 6 digit RGB. |

**Example**

```js
import intToRGB from 'int-to-rgb-x';

console.log(intToRGB(1)); // "#000001"
```

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