Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m0zgen/simple-log-color

Simple Node.js console log colorizer
https://github.com/m0zgen/simple-log-color

Last synced: 1 day ago
JSON representation

Simple Node.js console log colorizer

Awesome Lists containing this project

README

        

# Simple Log Color

It is a Node.js module for colorizing console log output.

## Install

```bash
npm i simple-log-color --save
```

## Usage

Crete constant form module:

```bash
const color = require('simple-log-color')
```

Use:

```bash
console.log(color.Red, "Red Color")
console.log(color.Green, "Green Color")
console.log(color.Yellow, "Yellow Color")
console.log(color.Blue, "Blue Color")
console.log(color.Magenta, "Magenta Color")
console.log(color.Cyan, "Cyan Color")
```

## Output

![](docs/simple-log-color-output.jpg)