1.0.1 • Published 10 months ago

simple-terminal-color v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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
1.0.1

10 months ago

1.0.0

10 months ago