1.0.4 • Published 4 years ago
ansi-console-colors v1.0.4
Color for your console app
Uses old school PCBoard color codes.
require('ansi-console-colors');
console.print('@X01Hello @X03World@X05!');PCBoard Color Format
The PCBoard method uses the format “@X<Background><Foreground>”
| # | Color | Attribute |
|---|---|---|
| 0 | Black | Normal |
| 1 | Blue | Normal |
| 2 | Green | Normal |
| 3 | Cyan | Normal |
| 4 | Red | Normal |
| 5 | Magenta | Normal |
| 6 | Yellow | Normal |
| 7 | White | Normal |
| 8 | Black | High Intensity |
| 9 | Blue | High Intensity |
| A | Green | High Intensity |
| B | Cyan | High Intensity |
| C | Red | High Intensity |
| D | Magenta | High Intensity |
| E | Yellow | High Intensity |
| F | White | High Intensity |