1.0.8 • Published 1 year ago

console-c v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

console-c

This is a simple Node.js module for logging messages with customizable colors. It uses the popular chalk library to apply colors to the log messages based on their properties.

Installation

To use this module in your Node.js project, you can install it via npm:

npm install console-c

Available Colors

  • danger: Red
  • warning: Yellow
  • info: Blue
  • success: Green
  • debug: Cyan
  • special: Magenta
  • If a color property is not recognized, the message will be logged with the default color (white).

import {c} from "console-c"

// Log a message with custom color property
c("Error: Something went wrong!", "danger");

// Log a warning message
c("Warning: Potential issue detected!", "warning");

// Log an info message
c("Info: Application started successfully.", "info");

// Log a success message
c("Success: Operation completed.", "success");

// Log a debug message
c("Debug: Additional information for debugging.", "debug");

// Log a special message
c("Special: Custom message with special color.", "special");

chalk

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago