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 252
This Week 252
This Month 6,908
Last Day 105
Last Week 2,117
Last Month 4,458
Dependencies (0)
None
Dev Dependencies (1)
Dependents (304)

Copyright 2014 - 2016 © taobao.org |