Socket
Socket
Sign inDemoInstall

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 that adds colors to the node console.log extending the string prototype.


Version published
Weekly downloads
4
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Console Colors

Console Colors it's a very small script that adds colors to the node console.log extending the string and number 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

###Changelog 0.33.2b - Now the numbers also can be colored and styled! 0.33.2a - A quick fix on the method to define the string prototype

Keywords

FAQs

Package last updated on 12 Aug 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