1.0.1 • Published 8 years ago

chalkmark v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

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 bold bold text
  • u or underline underlined text
  • s or strikethrough strikethrough text
  • i or italic italic 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