# npm-colors-utils

> Simple color utils for working with colors!

Latest version **0.1.3** (published 2021-04-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install npm-colors-utils
pnpm add npm-colors-utils
yarn add npm-colors-utils
bun add npm-colors-utils
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2021-04-25 |
| First published | 2021-04-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | morvicekdev |
| Maintainers | morvicekdev |
| Keywords | console, console-colors, colors, morvicek, utils |

## Links

- npm: https://www.npmjs.com/package/npm-colors-utils
- Repository: https://github.com/Morvicek/color-utils
- Homepage: https://github.com/Morvicek/color-utils#readme
- Issues: https://github.com/Morvicek/color-utils/issues
- npm.io page: https://npm.io/package/npm-colors-utils

## 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

- 0.1.3 (latest) — 2021-04-25
- 0.1.2 — 2021-04-24
- 0.1.1 — 2021-04-22
- 0.1.0 — 2021-04-22

## README

# Colors package
- Simple console color package!

```js
const colors = require("npm-color-utils");

colors.send("&cRED &bBLACK &aGREEN &mMagenta &xCyan &fWhite &rReset");
//you can use this!
console.log(colors.color("&cRED &bBLACK &aGREEN &mMagenta &xCyan &fWhite &rReset &aGREEN"))
//.getHEX(red, green, blue) or .getHEX(red, green, blue, alpha) returns hex
console.log(colors.getHex(235, 64, 52));

//.getRGB("rgb", true) returns {r: red, g: green, b: blue} .getRGB("rgb", false) returns r: red, g: green, b: blue 
//false can be used for basic returns and true is for the json; 
console.log(colors.getRGB("#eb4034", false))


// ----------------------------------------------

// this is const c = new colors.c("text")."function";

// You can also use that!
console.log(new colors.c("&cRED &bBLACK &aGREEN &mMagenta &xCyan &fWhite &rReset").getText())

//.getHEX(red, green, blue) or .getHEX(red, green, blue, alpha)
console.log(new colors.c().getHEX(235, 64, 52));

//.getRGB("rgb", true) returns {r: red, g: green, b: blue} .getRGB("rgb", false) returns r: red, g: green, b: blue 
//false can be used for basic returns and true is for the json; 
console.log(new colors.c(false).getRGB("#eb4034"))

// ---- Colors
//&c - RED
//&b - BLACK
//&a - GREEEN
//&m - Magenta
//&x - Cyan
//&f - White
//&r - Reset color

```

- You can test it!
- Github: https://github.com/Morvicek/color-utils

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