chalkup
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

chalkup

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

Usage

const chalkup = require('chalkup')

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

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

Dependencies (1)

Dev Dependencies (7)

Package Sidebar

Install

npm i chalkup

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • justmoon