Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

consolecolors

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

consolecolors

Console Colors it's a very small script (30 lines) that adds colors to the node console.log extending the string prototype.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

Console Colors

Console Colors it's a very small script (30 lines) that adds colors to the node console.log extending the string prototype.
This module is a reduced version of Marak's colors module. If you want more styles, themes and functions for your browser; go check that here.

###Instalation npm install consolecolors

###Usage

require('consolecolors');
console.log('foo'.red) // Prints foo in red foreground
console.log('foo'.red.underline) // Prints foo in red underlined

###Styles supported:

  • underline
  • inverse
  • white

###Foreground colors:

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

###Background colors:

  • whiteBG
  • blackBG
  • blueBG
  • cyanBG
  • greenBG
  • magentaBG
  • redBG
  • yellowBG

Keywords

FAQs

Package last updated on 24 Apr 2014

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