simple-terminal-color

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i simple-terminal-color

Weekly Downloads

204,079

Version

1.0.1

License

MIT

Unpacked Size

3.54 kB

Total Files

4

Last publish

Collaborators

  • comboishere