# polycolors

> Yet another command-line coloring library with RGB support

Latest version **1.0.0** (published 2021-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install polycolors
pnpm add polycolors
yarn add polycolors
bun add polycolors
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-10-01 |
| First published | 2021-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Eugene Obrezkov |
| Maintainers | ghaiklor |
| Keywords | rgb, color, console, terminal, ansi, tty, shell |

## Links

- npm: https://www.npmjs.com/package/polycolors
- Repository: https://github.com/ghaiklor/polycolors
- Homepage: https://github.com/ghaiklor/polycolors#readme
- Issues: https://github.com/ghaiklor/polycolors/issues
- npm.io page: https://npm.io/package/polycolors

## 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.0 (latest) — 2021-10-01

## README

# polycolors

Yet another command-line coloring library with RGB support.
You heard it right, __you can specify RGB values as an input to colorizer__.

## Features

- __RGB support__
- Aliases for common known RGB values
- No dependencies

## Getting Started

```shell
npm install polycolors
```

### Use an API for common colors

```javascript
import { fgRed } from "polycolors";

console.log(fgRed("What's up?"));
```

### Use an API for RGB values

```javascript
import { fgColor } from "polycolors";

console.log(fgColor(255, 0, 0)("What's up?"));
```

## Credits

- [nanocolors](https://github.com/ai/nanocolors)
- [picocolors](https://github.com/alexeyraspopov/picocolors)
- [yoctocolors](https://github.com/sindresorhus/yoctocolors)

## License

[MIT License](./LICENSE)

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