Skip to content

Amanej/browsercolorconsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tool to easily color your browser console logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published