Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

colorifylog

Amanej12ISC1.0.4

Colorifylog is a tool to color your console logs.

color, console, colorlog, colorify, colorifylog, hexcode, colour, console, log, consolelog

readme

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

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' Green, Hex: #008000
Red, Hex: '#ff0000' Red, Hex: #ff0000
Yellow, Hex: '#ffff00' Yellow, Hex: #ffff00
Blue, Hex: '#0000ff' Blue, Hex: #0000ff
Magenta, Hex: '#ff00ff' Magenta, Hex: #ff00ff
Cyan, Hex: '#00ffff' 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