chalkup

Markup for the console - convert HTML-like tags to ANSI escape sequences


Keywords
console, markup, bbcode, color, tags, format, string
License
ISC
Install
npm install chalkup@1.0.0

Documentation

chalkmark

Markup for the console - convert HTML-like tags to ANSI escape sequences

Usage

const chalkmark = require('chalkmark')

console.log(chalkmark('<b>test?</b> <green>success</green>'))

Example Screenshot with colored console output

Available tags

  • b or boldbold text
  • u or underline — underlined text
  • s or strikethroughstrikethrough text
  • i or italicitalic text
  • inverse — inverted text (foreground and background reversed)
Text colors
  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • gray
Background colors
  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgWhite