JSPM

chalkup

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q17304F
  • License ISC

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

Package Exports

  • chalkup

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chalkup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 underlineunderlined 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