# simple-color-hash

> Simple Color Hash

Latest version **1.0.2** (published 2019-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-color-hash
pnpm add simple-color-hash
yarn add simple-color-hash
bun add simple-color-hash
```

## 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.2 |
| Published | 2019-06-30 |
| First published | 2019-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ashwanth A R |
| Maintainers | ashwanth1109 |
| Keywords | color, hash, npm, module, node, javascript |

## Links

- npm: https://www.npmjs.com/package/simple-color-hash
- Repository: https://github.com/ashwanth1109/simple-color-hash
- Homepage: https://github.com/ashwanth1109/simple-color-hash#readme
- Issues: https://github.com/ashwanth1109/simple-color-hash/issues
- npm.io page: https://npm.io/package/simple-color-hash

## 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.2 (latest) — 2019-06-30
- 1.0.1 — 2019-06-26
- 1.0.0 — 2019-06-26

## README

# Simple Color Hash

### How to use it?

```js
const input = "Ashwanth A R";
const output = generateColorHash({ str: input }); // returns hex value
```

It's that simple. The color hash generator returns a hex code value.

If you want to configure more options, you can additionally provide hue, saturation, lightness, hash function and scheme.

```js
const input = "Ashwanth A R";
const output = generateColorHash({
  str: input,
  hue: { min: 210, max: 450 },
  sat: { min: 0.35, max: 0.65 },
  light: { min: 0.4, max: 0.6 },
  scheme: "rgb",
  hashFunction: customHash
});
```

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