1.0.1 • Published 10 years ago
chalkmark v1.0.1
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>'))
Available tags
borbold— bold textuorunderline— underlined textsorstrikethrough—strikethroughtextioritalic— italic textinverse— inverted text (foreground and background reversed)
Text colors
blackredgreenyellowbluemagentacyanwhitegray
Background colors
bgBlackbgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhite