simple-terminal-color
v1.0.1
Published
Simple Terminal Color (NodeJS,console.log)
Downloads
199,642
Maintainers
Readme
simple-terminal-color
Change text colors easily for console logs.
List of Features
- Foreground Colors
- Symbols
Download & Installation
1- Install the package
$ npm i simple-terminal-color
Example Usage
1- Create "test.js" file
const log = require('simple-terminal-color')
/*-------------------------------
--------- Colored Text ----------
---------------------------------
*/
// RED
log.error("Error Text")
// GREEN
log.success("Success Text")
// YELLOW
log.warning("Warning Text")
// BLUE
log.info("Info Text")
// GRAY
log.gray("Gray Text")
// PURPLE
log.purple("Purple Text")
// PINK
log.pink("Pink Text")
// WHITE
log.white("White Text")
/*-------------------------------
---------- Bold Text ------------
---------------------------------
*/
// BOLD STYLE
log.bold().error("Bold Error Text")
/*-------------------------------
--------- Add Symbol ------------
---------------------------------
*/
// CHECK ALL SYMBOLS
console.log(log.symbols)
// ADD SYMBOL TO TEXT
log.error(log.symbols.warning+" Error Text")
2- Run
$ node test.js
License
This project is licensed under the MIT License