console-powers
console-powers copied to clipboard
Support for Node.js environment and fallback for printing colors in Terminal/Command prompt
console.message should be installable through npm install console.message and should fallback to printing colors in the Terminal(Mac) and Command Prompt(Windows).
+1
+1
How are you planning on printing colours within Command Prompt? Would you be relying on a third party library to allow ANSI control sequences within CMD?
Hi @jakewhiteley,
Actually I could extract the logic from third party library and apply it in mine. The implementation for printing colors to the console is easy and straightforward. The only problem is to print the closest color. The CMD supports only limited number of colors and when you provide a custom color like #12345 this should be translated to its closest supported CMD color.