0.0.3 • Published 5 years ago

browsercolorlogs v0.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Browser ColorLogs

A tool to help you color your browser console logs.

Usage

Color text

browserLogColors.log("Hello Aman","#ff00ff");

Outputs

Colored text

With background

browserLogColors.log("Hello Aman","#ff00ff",'#000000');

Outputs

Colored text with background

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"]

Colored text string

Distribution

Minified - https://unpkg.com/browsercolorlogs@0.0.3/dist/index.js

Full - https://unpkg.com/browsercolorlogs@0.0.3/index.js

Related packages

Colorifylog - Console log hex code colors for node

Contributions welcome

  • Make support for text shadow
  • Make it happen