# is-rgb

> Check if an array contains a valid rgb color code

Latest version **1.0.0** (published 2017-04-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-rgb
pnpm add is-rgb
yarn add is-rgb
bun add is-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 | 2017-04-10 |
| First published | 2017-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dominik Winter |
| Maintainers | sydev |
| Keywords | rgb, color, colors, check, is |

## Links

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

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-04-10

## README

# is-rgb

[![Build Status](https://travis-ci.org/sydev/is-rgb.svg?branch=master)](https://travis-ci.org/sydev/is-rgb)

Check if an array contains a valid rgb color code

## Table of contents
- [Installation](#installation)
- [Usage](#usage)
- [Development](#development)
- [Changelog](#changelog)


## Installation

```
$ npm install --save is-rgb
```

Or if you prefer yarn:

```
$ yarn add is-rgb
```

## Usage

```JavaScript
const is_rgb = require('is-rgb');

// If no callback function is given, is_rgb returns a promise
is_rgb([0, 100, 200])
  .then(result => console.log(result)) // true
  .catch(err => console.error(err));

// Here with a given callback function
is_rgb([1, 101, 201], (err, result) => {
  if (err) console.error(err);

  console.log(result); // true
});

// You can also give three single parameters instead of an array
is_rgb(2, 102, 202, (err, result) => {
  if (err) console.error(err);

  console.log(result); // true
});

```

## Development

```
$ npm test
```

## Changelog

- 1.0.0
  - Initial Release

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