1. colorful
colorful if a terminal tool for colors
colorful
Package: colorful
Created by: lepture
Last modified: Mon, 13 Jun 2022 06:31:52 GMT
Version: 2.1.0
Downloads: 95,506
Repository: https://github.com/lepture/colorful

Install

npm install colorful
yarn add colorful

Colorful support for terminal


Color

color as function:

 var color = require('colorful').color
color.red('hello')
color.underline('hello')

color as human:

 require('colorful').colorful()
'hello'.to.red.color
'hello'.to.underline.bold.red.color

color and style supports:

  • black black_bg
  • red red_bg
  • green green_bg
  • yellow yellow_bg
  • blue blue_bg
  • magenta magenta_bg
  • cyan cyan_bg
  • white white_bg
  • gray grey gray_bg grey_bg
  • bold
  • italic
  • underline
  • blink
  • inverse
  • strike

and detect is color supported:

 require('colorful').color.isSupported

Logging

Colorful and nested logging support.

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code