New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ccolors

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ccolors

get colors in your node.js cli console like what

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
Maintainers
1
Weekly downloads
 
Created
Source

ccolors - get color and style in your node.js console

Installation

npm install ccolors

colors and styles!

  • bold
  • italic
  • underline
  • inverse

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white

  • blackBg
  • redBg
  • greenBg
  • yellowBg
  • blueBg
  • magentaBg
  • cyanBg
  • whiteBg

  • blackHi
  • redHi
  • greenHi
  • yellowHi
  • blueHi
  • magentaHi
  • cyanHi
  • whiteHi

  • blackBgHi
  • redBgHi
  • greenBgHi
  • yellowBgHi
  • blueBgHi
  • magentaBgHi
  • cyanBgHi
  • whiteBgHi
  • blackHiBg
  • redHiBg
  • greenHiBg
  • yellowHiBg
  • blueHiBg
  • magentaHiBg
  • cyanHiBg
  • whiteHiBg

  • rainbow
  • zebra

Usage

var ccolors = require('ccolors');

console.log('hello'.green); // outputs green text
console.log('i like cake and pies'.underline.red) // outputs red underlined text
console.log('inverse the color'.inverse); // inverses the color
console.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)

Shamelessly copied from https://github.com/marak/colors.js/

Keywords

FAQs

Package last updated on 23 May 2013

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc