JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29540
  • Score
    100M100P100Q158795F

colorful if a terminal tool for color, logging and command

Package Exports

  • colorful

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (colorful) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.