0.0.2 • Published 9 years ago
cli-colors v0.0.2
CLI colors
Under development, don't use
Why
Marak/colors – modifies String prototype... facepalm.
SindreSorhus/chalk – overengineered, fluent API sucks at composition
Usage
let {blue, red} = require("./index")
console.log("one " + red("two " + blue("three ") + "four " + blue("five ") + "six ") + "seven")
API
let colors = require("cli-colors")
// or import * as colors from "cli-colors"Modifiers
colors.bold
colors.hidden
colors.inverse
colors.italic
colors.strikethrough
colors.underlineColors
colors.black
colors.blue
colors.cyan
colors.gray
colors.green
colors.grey (alias)
colors.magenta
colors.red
colors.yellow
colors.whiteBackgrounds
colors.bgBlack
colors.bgBlue
colors.bgCyan
colors.bgGreen
colors.bgMagenta
colors.bgRed
colors.bgYellow
colors.bgWhiteSpecial
colors.reset
colors.styles