print-name-success
v2.0.1
Published
Learning how to publish your first package
Downloads
1
Readme
print-name-success
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