ansi-console-colors

1.0.4 • Public • Published

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

View the test.js file for details / examples!

Package Sidebar

Install

npm i ansi-console-colors

Weekly Downloads

2

Version

1.0.4

License

MIT License

Unpacked Size

3.77 kB

Total Files

4

Last publish

Collaborators

  • hazlema2