# rich-console

> A node.js module let console can output colorful text. like html, you can set text color throw tag, for example: 'hellow world!. so far the fllowing color was supported: black, red, green, yellow or orange, blue, pink,

Latest version **0.0.4** (published 2014-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install rich-console
pnpm add rich-console
yarn add rich-console
bun add rich-console
```

## 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.0.4 |
| Published | 2014-08-20 |
| First published | 2014-08-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | keven-wang |
| Maintainers | keven-wang |

## Links

- npm: https://www.npmjs.com/package/rich-console
- npm.io page: https://npm.io/package/rich-console

## Recent versions

- 0.0.4 (latest) — 2014-08-20
- 0.0.3 — 2014-08-05
- 0.0.2 — 2014-08-05
- 0.0.1 — 2014-08-05

## README

# rich-console

## Purpose

A node.js module let console can output colorful text. like html,
you can set text color throw tag, for example:  
'<green>hellow <cyan>world<cyan>!</green>.
so far the fllowing color was supported: black, red, green, yellow or    
orange, blue, pink, cyan, white.     

## Features
  
 * get rich output template that can be used by console.log
 * output log content 
 * output error content with red color

## Example
```js
  var richConsle = require('rich-console');
  
  // if you need to output many times, recommend to use getRichTmpl
  var tmp1 = richConsle.getRichTmpl('%s <red>%s</red> <green>%s</green> <cyan>%s</cyan>');
  var tmp2 = richConsle.getRichTmpl('%s <red>%s</red> <green>%s</green> <cyan>%s</cyan>', true);
  richConsle.log(tmp1, 'dark version:', 'red', 'green', 'cyan');    // dark linght 
  richConsle.log(tmp2, 'bright verison:', 'red', 'green', 'cyan');  // bright light
  
  // if you output not frequently, can use log or error method
  richConsle.log('<red>a color <pink><cyan>nest</cyan> example, can <red>nested</red> any</pink> times!</red>');
  richConsle.error('a error occured, info: [<cyan>%s</cyan>], please fix and run agin', 'foo error info'); 
```

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