8000 GitHub - seri4lize/colorful-printer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

seri4lize/colorful-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Colorful Printer

Table Of Contents


Installation

npm install colorful-printer

Usage

const { printer } = require("colorful-printer");

printer.success(message);
printer.error(message);
printer.warn(message);
printer.info(message);
printer.log(message);
printer.custom({
  tag: "CustomTag",
  message: "This is custom log message!",
  textColor: "#e0d21f", //Printer uses hex based coloring
  background: "#e0d21f",
  isBold: true,
});

Image


Utils

Fast Styling

printer.log("§c This is Red,§e This is Yellow, §a§oThis is italic");

Image

There is a color map for styling

Color Map

§0 -> Black
§1 -> Dark Blue
§2 -> Dark Green
§3 -> Dark Aqua
§4 -> Dark Red
§5 -> Dark Purple
§6 -> Gold
§7 -> Gray
§8 -> Dark Gray
§9 -> Blue
§a -> Green
§b -> Aqua
§c -> Red
§d -> Light Purple
§e -> Yellow
§f -> White
§l -> Bold
§n -> Underline
§o -> Italic
§m -> Striketrough
§r -> Reset the color

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0