Skip to content

Instantly share code, notes, and snippets.

@adarsh-chakraborty
Created January 1, 2022 18:14
Show Gist options
  • Save adarsh-chakraborty/d4040f08cc923aea2f88e16975d10da3 to your computer and use it in GitHub Desktop.
Save adarsh-chakraborty/d4040f08cc923aea2f88e16975d10da3 to your computer and use it in GitHub Desktop.
Add Colors to your console!

Install the npm package

npm i colors

Use colors in your project:

  • Import color js package
import colors from 'colors;
  • You can now use colors in your logs!
console.log(`Some Information`.cyan.underline);
console.log(`Some Error`.red.underline.bold);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment