# @ondohers/console-colors

> ANSI colors for your node console

Latest version **0.1.1** (published 2023-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ondohers/console-colors
pnpm add @ondohers/console-colors
yarn add @ondohers/console-colors
bun add @ondohers/console-colors
```

## 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.1 |
| Published | 2023-05-01 |
| First published | 2023-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Damien Otis |
| Maintainers | ondoher |
| Keywords | nodejs, ANSI, color, console, colorize, ansi, terminal |

## Links

- npm: https://www.npmjs.com/package/@ondohers/console-colors
- npm.io page: https://npm.io/package/@ondohers/console-colors

## 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.1 (latest) — 2023-05-01
- 0.1.0 — 2023-05-01

## README

node-console-colors adds ANSI coloring to the nodejs console.log output.

Install:

npm install --save @ondohers/console-colors


Usage:


commonjs: const cc = require("@ondohers/console-colors");
esm: import cc from "@ondohers/console-colors";

console.log(cc.set("fg_red", "Hello World in red"))

console.log(cc.set("fg_blue", "Hello World in blue"))

console.log(cc.set("fg_green", "bg_dark_grey", "Hello World", "in fg_green and bg_dark_gray"))

Known issues:

Windows, OSX, and MinGW/Msys32 will show all colors, but Linux may show fewer colors.

![alt tag](https://dmtmix.com/dnetAPI/getImage/console_colors.png)

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