Color Js Console at Color

Color Js Console. Coloring your console within node.js is an easy way to make your apps’ outputs more readable. Above line prints the text in yellow color.

35 Console Log Color Javascript Modern Javascript Blog
35 Console Log Color Javascript Modern Javascript Blog from gregoryboxij.blogspot.com

How to style your console output in node.js with chalk september 17, 2019 | time to read: Beside cleaning up the console message by passing the styles as an array. In this case, to change the color of the text in the console we recommend you the colors.js module available on npm.

35 Console Log Color Javascript Modern Javascript Blog

This sometimes makes programs easier to use. This module allow you to show color and style in your node.js console with chainable methods (i.e text.bgblue.white.underline ): \x1b [43m sets the background color to yellow. Console.log(\x1b [33m%s\x1b [0m, i am in yellow color);