@gurjinder7/console-color
v1.0.3
Published
Console.log in different colors for easier distinction between multiple or many console logs
Maintainers
Readme
console-color
Console.log in different colors for easier distinction between multiple or many console logs
Homepage: https://github.com/Gurjinder7/console-color#readme :wave:
Features:
- Console log in style and provide distinction in multiple logs
- Color all the arguments or use a single line colored heading for logging
- Log as many arguments in a single log function
- Use default yellow color or bring in other colors to the party :smirk:
- Jsdoc documentation for all the info you need
Colors:
1. Y - Yellow (default)
2. O - Orange
3. R - Red
4. G - Green
5. C - Cyan
6. B - Blue
7. V - Violet
8. P - PinkHow to install
npm i @gurjinder7/console-color
How to use in your React project
- Import the functions
logandheadloginto the project - Use them to console where ever you want
logfunction- expected syntax :
log(color, arguments_to_log) - default syntax :
log(arguments_to_log)
- expected syntax :
headlogfunction- expected syntax :
headlog(heading, color, arguments_to_log) - default syntax:
headlog(heading, arguments_to_log) headingis required!
- expected syntax :
Examples:
log("O", a, b, c, d)log(a,b,c)headlog("My heading", "V", a, b, c)headlog("My heading", a, b, c)
Report an issues! :cry:
- Please raise an issue on the package repo at: https://github.com/Gurjinder7/console-color/issues




