# hex-gen

> Generates and returns random color hex code.

Latest version **1.0.3** (published 2022-03-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install hex-gen
pnpm add hex-gen
yarn add hex-gen
bun add hex-gen
```

## 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.3 |
| Published | 2022-03-05 |
| First published | 2022-03-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | n44 |
| Maintainers | n44 |
| Keywords | hexcolor, hex-gen, randomcolor, color, colorgenerator, random |

## Links

- npm: https://www.npmjs.com/package/hex-gen
- Repository: https://github.com/nandhu-44/Hex-Gen
- Homepage: https://github.com/nandhu-44/Hex-Gen#readme
- Issues: https://github.com/nandhu-44/Hex-Gen/issues
- npm.io page: https://npm.io/package/hex-gen

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2

## 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.3 (latest) — 2022-03-05
- 1.0.2 — 2022-03-04
- 1.0.1 — 2022-03-04
- 1.0.0 — 2022-03-04

## README

# Random Color Generator

- Generates and returns random color hex code.

```sh
npm i hex-gen
```

### Basic usage
```js
const { randomColor } = require('hex-gen') 

const myColor = randomColor()

console.log(myColor)
```

### With log
```js
const { randomColor } = require('hex-gen') 

randomColor(true)
//Automatically logs to console, default 'false'.
```

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