/Colorizer

Printing with color for Node.js

Primary LanguageJavaScriptThe UnlicenseUnlicense

Build

Colorizer

Printing with color.

Usage

let { colorize } = require("node-colorizer")
colorize("Hello", "red")

You can join more than 1 color with a dot.

let { colorize } = require("node-colorizer")
colorize("Hello", "red.bgblue")

Colors

    reset: "\x1b[0m",
    bright: "\x1b[1m",
    dim: "\x1b[2m",
    underscore: "\x1b[4m",
    blink: "\x1b[5m",
    reverse: "\x1b[7m",
    hidden: "\x1b[8m",
    black: "\x1b[30m",
    red: "\x1b[31m",
    green: "\x1b[32m",
    yellow: "\x1b[33m",
    blue: "\x1b[34m",
    magenta: "\x1b[35m",
    cyan: "\x1b[36m",
    white: "\x1b[37m",
    bgblack: "\x1b[40m",
    bgred: "\x1b[41m",
    bggreen: "\x1b[42m",
    bgyellow: "\x1b[43m",
    bgblue: "\x1b[44m",
    bgmagenta: "\x1b[45m",
    bgcyan: "\x1b[46m",
    bgwhite: "\x1b[47m"