@eodomius/console v1.0.0
Eodomius utilities: Console
Utilities methods to colorize console output.
Installation
NPM:
npm i @eodomius/console
Yarn:
yarn add @eodomius/console
Importation
CommonJS:
const ConsoleStyle = require("@eodomius/console");
EcmaScript modules:
import ConsoleStyle from "@eodomius/console";
Methods
bold(text)
Change text to bold.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bold("text");
underline(text)
Change text to underline.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.underline("text");
reverse(text)
Reverse colors.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.reverse("text");
bright(text)
Apply bright style.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bright("text");
dim(text)
Apply dim style.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.dim("text");
underscore(text)
Apply underscore style.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.underscore("text");
blink(text)
Apply blink style.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.blink("text");
hidden(text)
Apply hidden style.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.hidden("text");
fgblack(text)
Color font in black.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgblack("text");
fgred(text)
Color font in red.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgred("text");
fggreen(text)
Color font in green.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fggreen("text");
fgyellow(text)
Color font in yellow.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgyellow("text");
fgblue(text)
Color font in blue.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgblue("text");
fgmagenta(text)
Color font in megenta.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgmagenta("text");
fgcyan(text)
Color font in cyan.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgcyan("text");
fgcyan(text)
Color font in cyan.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgcyan("text");
fgwhite(text)
Color font in white.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.fgwhite("text");
bgblack(text)
Color background in black.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bgblack("text");
bgred(text)
Color background in red.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bgred("text");
bggreen(text)
Color background in green.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bggreen("text");
bgyellow(text)
Color background in yellow.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bgyellow("text");
bgblue(text)
Color background in blue.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bgblue("text");
bgmagenta(text)
Color background in magenta.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bgmagenta("text");
bgcyan(text)
Color background in cyan.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bgcyan("text");
bgwhite(text)
Color background in white.
Parameters:
text
(String): Text to be changed.
ConsoleStyle.bgwhite("text");
2 years ago