Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/m0zgen/simple-log-color
- Owner: m0zgen
- Created: 2022-04-05T07:03:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-12T08:18:32.000Z (over 2 years ago)
- Last Synced: 2024-10-30T06:10:09.993Z (16 days ago)
- Language: JavaScript
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)