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

crayonz

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crayonz

Change colour and formatting of text in the cli.

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

crayonz

ANSI based color and formatting for the console

Why?

It loads and runs in a blink. It's super light, with no dependencies[experimental].

Installation

$ npm install crayonz

Usage

console.log(crayonz.blue("Hey!")); With the help of chaining, different effects can be applied together.

var crayonz = require('crayonz')

crayonz.red('Aha!')
crayonz.bgRed('Aha!')
crayonz.green('Aha!')
crayonz.bgGreen('Aha!')
crayonz.magenta('Aha!')
crayonz.cyan('Aha!')
crayonz.white('Aha!')
crayonz.gray('Aha!')
crayonz.inverse('Aha!')
crayonz.black('Aha!')
crayonz.strikethrough('Aha!')
crayonz.red('Ah!')
crayonz.bgRed('I\'m Blue')
crayonz.underline(crayonz.cyan('de da m a die'))
crayonz.dim('Sleepy!')
crayonz.bold('Writing README is boring.  zzzz`')

API=>           
**modifiers**
  italic        
  underline     
  inverse
  reset         
  bold          
  dim       
  hidden        
  strikethrough 
  
**text colors**  
  black         
  gray          
  yellow        
  blue          
  magenta       
  cyan          
  white               
  red           
  green         
     
  
**backgrounds**  
  bgblack       
  bggray                
  bgred         
  bggreen       
  bgyellow      
  bgblue        
  bgmagenta     
  bgcyan        
  bgwhite       
  



## License
[ISC](https://tldrlegal.com/license/ISC-license)

Keywords

cli

FAQs

Package last updated on 21 Dec 2018

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