colorful
colorful if a terminal tool for colors
Last updated 7 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 (7 years ago)

15 Versions

  • 2.1.0                                ...           7 years ago
  • 2.0.3                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.3                                ...           7 years ago
  • 1.2.2                                ...           7 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 61
This Week 1,315
This Month 2,116
Last Day 248
Last Week 1,342
Last Month 6,172
Dependencies (0)
None
Dev Dependencies (1)
Dependents (364)

Copyright 2014 - 2017 © taobao.org |