colorful
colorful if a terminal tool for colors
Last updated 6 years ago by lepture .
Repository · Original npm · Tarball · package.json
$ cnpm install colorful 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.1.0                                ...           latest (6 years ago)

15 Versions

  • 2.1.0                                ...           6 years ago
  • 2.0.3                                ...           6 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.3                                ...           6 years ago
  • 1.2.2                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.2                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 904
This Month 3,234
Last Day 48
Last Week 1,083
Last Month 8,425
Dependencies (0)
None
Dev Dependencies (1)
Dependents (318)

Copyright 2014 - 2016 © taobao.org |