UNPKG

colorifylog

Version:

Colorifylog is a tool to color your console logs.

41 lines (25 loc) 1.36 kB
# Colorifylog Colorifylog is a tool to color your console logs. ## Usage Install `const colorifylog = require('colorifylog')` Call colorifylog and add a the Hex code. `colorifylog("Hello World","#ff00ff")` Returns ![color output](./example.png "Example of color output") ## Name It was originally called colorify, but since it was a pretty shitty version of its aspiration and the countless other console coloring libraries out there. It has therefore been named colorifylog, as a temporary name. ## Colors ![Green, Hex: '#008000'](https://placehold.it/15/008000/000000?text=+) `Green, Hex: #008000` ![Red, Hex: '#ff0000'](https://placehold.it/15/ff0000/000000?text=+) `Red, Hex: #ff0000` ![Yellow, Hex: '#ffff00'](https://placehold.it/15/ffff00/000000?text=+) `Yellow, Hex: #ffff00` ![Blue, Hex: '#0000ff'](https://placehold.it/15/0000ff/000000?text=+) `Blue, Hex: #0000ff` ![Magenta, Hex: '#ff00ff'](https://placehold.it/15/ff00ff/000000?text=+) `Magenta, Hex: #ff00ff` ![Cyan, Hex: '#00ffff'](https://placehold.it/15/00ffff/000000?text=+) `Cyan, Hex: #00ffff` ## Contributions welcome Please add colors, improve functionality. Here is some things you can do: * Add background color support * Add text formatting support * Support color names instead of hex codes * Improve main functionality to return instead of directly logging