Node Js - Print colored output to the console using Third-Party Module/Package
There are some scenarios where you want to print the success message with a green color, error message with Red and some Warning with the Yellow color.
Node js doesn't provide you any core module to print colored messages to the Console/ Visual Studio Terminal.
There is a Third Party Package available i.e Chalk which you can download using npm. Chalk is provided for the styling of your Terminal. This package has over 40 million weekly downloads.
npm install chalk
Shorthand Syntax: npm i chalk
There are some scenarios where you want to print the success message with a green color, error message with Red and some Warning with the Yellow color.
Node js doesn't provide you any core module to print colored messages to the Console/ Visual Studio Terminal.
There is a Third Party Package available i.e Chalk which you can download using npm. Chalk is provided for the styling of your Terminal. This package has over 40 million weekly downloads.
npm install chalk
Shorthand Syntax: npm i chalk
0 Comments