Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "html"

Index

Variables

Const FMT_HTML_INLINE_CSS

FMT_HTML_INLINE_CSS: StringFormat = formatHtml({colors: ["#000","#a00","#0a0","#aa0","#00a","#a0a","#0aa","#aaa","#555","#f55","#5f5","#ff5","#55f","#f5f","#5ff","#fff",],attrib: "style",delim: ";",fg: "color:",bg: "background:",bold: "font-weight:bold",dim: "opacity:0.5",underline: "text-decoration:underline",})

Preset HTML string formatter, generating <span> elements with inline CSS.

Const FMT_HTML_TACHYONS

FMT_HTML_TACHYONS: StringFormat = formatHtml({colors: ["black","dark-red","dark-green","gold","dark-blue","dark-pink","light-blue","moon-gray","mid-gray","red","green","yellow","blue","hot-pink","lightest-blue","white",],attrib: "class",delim: " ",fg: "",bg: "bg-",bold: "b",dim: "o-50",underline: "underline",})

Preset HTML formatter, generating <span> elements with Tachyons CSS classes.

Functions

Const formatHtml

  • formatHtml(__namedParameters: { attrib: string; bg: string; bold: string; colors: string[]; delim: string; dim: string; fg: string; underline: string }): StringFormat
  • Constructs an HTML formatter using given config options.

    Parameters

    • __namedParameters: { attrib: string; bg: string; bold: string; colors: string[]; delim: string; dim: string; fg: string; underline: string }
      • attrib: string
      • bg: string
      • bold: string
      • colors: string[]
      • delim: string
      • dim: string
      • fg: string
      • underline: string

    Returns StringFormat

Generated using TypeDoc