# simple-console-color

> npm module to upgrade console logs with colors

Latest version **1.0.6** (published 2017-03-09) · ISC license · 0 weekly downloads

## Install

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

## 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.6 |
| Published | 2017-03-09 |
| First published | 2017-03-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andre Antunes Vieira |
| Maintainers | andreantunesvieira |
| Keywords | console, cli, color, terminal, shell, log |

## Links

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

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.6 (latest) — 2017-03-09
- 1.0.5 — 2017-03-09
- 1.0.3 — 2017-03-09
- 1.0.2 — 2017-03-09
- 1.0.1 — 2017-03-08
- 1.0.0 — 2017-03-08

## README

## simple-console-color ##

Node server console upgrate, to create console.logs with colors with a simple form, without any other modules.

## Install ##

npm i simple-console-color

## Usage ##

Native javascript console.log keep the same, new methods are addicteds:

 - Console.logColors  
    ✓ console.logBlack('Print text in color Black');  
    ✓ console.logRed('Print text in color Red');  
    ✓ console.logGreen('Print text in color Green');  
    ✓ console.logYellow('Print text in color Yellow');  
    ✓ console.logBlue('Print text in color Blue');  
    ✓ console.logMagenta('Print text in color Magenta');  
    ✓ console.logCyan('Print text in color Cyan');  
    ✓ console.logWhite('Print text in color White');  
    ✓ console.logCrimson('Print text in color Crimson');  

 - Just Colors ( Must be used inside console.log() )  
    ✓ console.black('This text will be converted to color black');  
    ✓ console.red('This text will be converted to color red');  
    ✓ console.green('This text will be converted to color green');  
    ✓ console.yellow('This text will be converted to color yellow');  
    ✓ console.blue('This text will be converted to color blue');  
    ✓ console.magenta('This text will be converted to color magenta');  
    ✓ console.cyan('This text will be converted to color cyan');  
    ✓ console.white('This text will be converted to color white');  
    ✓ console.crimson('This text will be converted to color crimson');  

 - Juts Background colors ( Must be used inside console.log() )  
    ✓ console.bg.black('This text will be converted to background color black');  
    ✓ console.bg.red('This text will be converted to background color red');  
    ✓ console.bg.green('This text will be converted to background color green');  
    ✓ console.bg.yellow('This text will be converted to background color yellow');  
    ✓ console.bg.blue('This text will be converted to background color blue');  
    ✓ console.bg.magenta('This text will be converted to background color magenta');  
    ✓ console.bg.cyan('This text will be converted to background color cyan');  
    ✓ console.bg.white('This text will be converted to background color white');  
    ✓ console.bg.crimson('This text will be converted to background color crimson');  

## Samples ##

console.logRed('Print text in color Red');  
console.log(console.red('Print text in color Red'));  
console.log('Print text in color', console.red('Red'));  
console.log('Print text in color ' + console.red('Red') + ' or ' + console.blue('Blue'));  
console.log(console.red('Red') + ' or ' + console.blue('Blue') + ' or ' + console.green('Green'));

![alt text](https://raw.githubusercontent.com/AndreAntunesVieira/console-color/master/samples/samples-1.png "Sample 1")

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