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

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin