htmlcolor.js 915 B

12345678910111213141516171819202122232425262728293031
  1. class HtmlColor {
  2. };
  3. HtmlColor.Reset = "</span>";
  4. HtmlColor.Bright = "\x1b[1m";
  5. HtmlColor.Dim = "\x1b[2m";
  6. HtmlColor.Underscore = "\x1b[4m";
  7. HtmlColor.Blink = "\x1b[5m";
  8. HtmlColor.Reverse = "\x1b[7m";
  9. HtmlColor.Hidden = "\x1b[8m";
  10. HtmlColor.Reveal = "\x1b[28m";
  11. HtmlColor.FgBlack = '<span class="fgblack">';
  12. HtmlColor.FgRed = '<span class="fgred">';
  13. HtmlColor.FgGreen = '<span class="fggreen">';
  14. HtmlColor.FgYellow = '<span class="fgyellow">';
  15. HtmlColor.FgBlue = '<span class="fgblue">';
  16. HtmlColor.FgMagenta = '<span class="fgmagenta">';
  17. HtmlColor.FgCyan = '<span class="fgcyan">';
  18. HtmlColor.FgWhite = '<span class="fgwhite">';
  19. HtmlColor.BgBlack = "\x1b[40m";
  20. HtmlColor.BgRed = "\x1b[41m";
  21. HtmlColor.BgGreen = "\x1b[42m";
  22. HtmlColor.BgYellow = "\x1b[43m";
  23. HtmlColor.BgBlue = "\x1b[44m";
  24. HtmlColor.BgMagenta = "\x1b[45m";
  25. HtmlColor.BgCyan = "\x1b[46m";
  26. HtmlColor.BgWhite = "\x1b[47m";
  27. module.exports = HtmlColor;