col-log-cl

1.1.1 • Public • Published

col-log-cl

A colorful logger for Node.js. It is useful for debugging color issues in terminal applications.

Install

npm install col-log-cl

Usage

const cl = require("col-log-cl");

cl.log("Hello, World!");
cl.info("This is an information message");
cl.warn("This is a warning message");
cl.error("This is an error message");
cl.success("This is a success message");
cl.random("This is a random message");
cl.magenta("This is a magenta message");
cl.cyan("This is a cyan message");
cl.white("This is a white message");
cl.green("This is a green message");
cl.yellow("This is a yellow message");
cl.red("This is a red message");
cl.blue("This is a blue message");
cl.gray("This is a gray message");
cl.bgBlue("This is a background blue message");
cl.bgRed("This is a background red message");
cl.bgGreen("This is a background green message");
cl.bgYellow("This is a background yellow message");
cl.bgMagenta("This is a background magenta message");
cl.bgCyan("This is a background cyan message");
cl.bgWhite("This is a background white message");
cl.bgGray("This is a background gray message");
cl.highlight("This is a highlighted message");

Output

Alt text

Help

To get help with col-log-cl, run the following command:

const cl = require("col-log-cl");
cl.help(​);

This will print the following help message:

Help Message

Package Sidebar

Install

npm i col-log-cl

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

10.3 kB

Total Files

7

Last publish

Collaborators

  • raedelmajdoub