browsercolorlogs
v0.0.3
Published
A tool to help you color browser console logs
Downloads
6
Maintainers
Readme
Browser ColorLogs
A tool to help you color your browser console logs.
Usage
Color text
browserLogColors.log("Hello Aman","#ff00ff");
Outputs
With background
browserLogColors.log("Hello Aman","#ff00ff",'#000000');
Outputs
Return log string
browserLogColors.color("Hello Aman","#ff00ff",'#000000');
This returns an array of the different strings to output as the following:
["%cHello Aman", "background:#000000 ; color: #ff00ff"]
Distribution
Minified - https://unpkg.com/[email protected]/dist/index.js
Full - https://unpkg.com/[email protected]/index.js
Related packages
Colorifylog - Console log hex code colors for node
Contributions welcome
- Make support for text shadow
- Make it happen