JSPM

  • Created
  • Published
  • Downloads 72826
  • Score
    100M100P100Q143071F
  • License MIT

Terminal string styling done right

Package Exports

  • colors-cli
  • colors-cli/toxic

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (colors-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

colors-cli

Install with npm:

npm install bannerjs --save

Basic usage:

var color = require('colors-cli')
console.log( color.red('hello') )
require('colors-cli/toxic')
console.log( 'hello'.green );
 Usage: colors

 Options:

   --black  => black
   --black_bg  => black_bg
   --red  => red
   --red_bg  => red_bg
   --green  => green
   --green_bg  => green_bg
   --yellow  => yellow
   --yellow_bg  => yellow_bg
   --blue  => blue
   --blue_bg  => blue_bg
   --magenta  => magenta
   --magenta_bg  => magenta_bg
   --cyan  => cyan
   --cyan_bg  => cyan_bg
   --white  => white
   --white_bg  => white_bg
   --aqua  => aqua
   --aqua_bg  => aqua_bg
   --bold  => bold
   --faint  => faint
   --italic  => italic
   --underline  => underline
   --blink  => blink
   --overline  => overline
   --inverse  => inverse
   --conceal  => conceal
   --strike  => strike

 Examples:

   colors --red "\nhello world" --bold,underline,yellow "wcj"
   colors --green,bold "\nhello world"

参考