New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cli-colors

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-colors

CLI colors

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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")

Sample

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.underline

Colors

colors.black
colors.blue
colors.cyan
colors.gray
colors.green
colors.grey (alias)
colors.magenta
colors.red
colors.yellow
colors.white

Backgrounds

colors.bgBlack
colors.bgBlue
colors.bgCyan
colors.bgGreen
colors.bgMagenta
colors.bgRed
colors.bgYellow
colors.bgWhite

Special

colors.reset
colors.styles

FAQs

Package last updated on 29 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts