Skip to content

justmoon/chalkmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published