2.0.1 • Published 10 months ago

print-name-success v2.0.1

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

print-name-success

npm version

This package provides functions to print text with different colors and backgrounds.

Installation

You can install this package using npm:

npm install print-name-success

Usage

Function: print

Prints the specified message with the given text color and background color.

const { print } = require('print-name-success');

print("Hello, this text is in red color!", "red", "bgYellow");
print("This text is in green color!", "green", "bgBlue");
print("This text is in blue color!", "blue", "bgRed");

Function: printRainbow

Prints the specified message in a rainbow of colors.

const { printRainbow } = require('print-name-success');

printRainbow("Hello, this text is in rainbow color!");

Available Colors

Text Colors

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • gray

Background Colors

  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgWhite
2.0.1

10 months ago

2.0.0

10 months ago

1.0.0

1 year ago