2.1.0 • Published 12 years ago
colorful v2.1.0
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.colorcolor and style supports:
blackblack_bgredred_bggreengreen_bgyellowyellow_bgblueblue_bgmagentamagenta_bgcyancyan_bgwhitewhite_bggraygreygray_bggrey_bg- bold
- italic
- underline
- blink
- inverse
- strike
and detect is color supported:
require('colorful').color.isSupportedLogging
Colorful and nested logging support.