# @types/randomcolor

> TypeScript definitions for randomcolor

Latest version **0.5.9** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/randomcolor
pnpm add @types/randomcolor
yarn add @types/randomcolor
bun add @types/randomcolor
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.5.9 |
| Published | 2023-11-07 |
| First published | 2016-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/randomcolor
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomcolor
- npm.io page: https://npm.io/package/@types/randomcolor

## Recent versions

- 0.5.9 (latest) — 2023-11-07
- 0.5.7 (ts4.1) — 2022-11-28
- 0.5.6 (ts3.6) — 2021-07-08
- 0.5.5 (ts3.0) — 2020-05-15
- 0.5.4 (ts2.8) — 2020-03-10
- 0.5.3 (ts2.0) — 2019-08-06
- 0.5.8 — 2023-10-18
- 0.5.2 — 2019-05-14
- 0.5.1 — 2019-01-07
- 0.5.0 — 2018-07-09
- 0.4.3 — 2016-11-29
- 0.4.2 — 2016-10-05
- 0.4.1 — 2016-09-21

## README

# Installation
> `npm install --save @types/randomcolor`

# Summary
This package contains type definitions for randomcolor (https://github.com/davidmerfield/randomColor).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomcolor.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomcolor/index.d.ts)
````ts
declare function randomColor(options?: RandomColorOptionsSingle): string;
declare function randomColor(options?: RandomColorOptionsMultiple): string[];

interface RandomColorOptionsSingle {
    hue?: number | string | undefined;
    luminosity?: "bright" | "light" | "dark" | "random" | undefined;
    seed?: number | string | undefined;
    format?: "hsvArray" | "hslArray" | "hsl" | "hsla" | "rgbArray" | "rgb" | "rgba" | "hex" | undefined;
    alpha?: number | undefined;
}

interface RandomColorOptionsMultiple extends RandomColorOptionsSingle {
    count: number;
}

export = randomColor;
export as namespace randomColor;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Mathias Feitzinger](https://github.com/feitzi).

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