Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A compact and efficient terminal styling library that offers an impressive array of 40 different styles, all packed into a raw code size of just 248 bytes! 10x smaller than the minzipped size of most popular alternative, chalk

const color = require('@nuff-said/color');

console.log(color.redBr('Bright red!'))
console.log(color.blink(color.whiteBg(color.black('Black on white text which blinks!'))))

Installation

$ npm i @nuff-said/color

Colors

All 8 bit colors are supported:

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

The variants bright, background, and background bright can be applied by suffixing the color name with Br, Bg or BrBg respectively.

The following modifiers are also supported:

  • reset
  • bold
  • dim
  • italic
  • underline
  • blink
  • reverse
  • strike

Contributing

All contributions are welcome! Feel free to file an issue, point out an optimization or even push a PR!

License

This project uses the GPL-3.0 license.

About

Compact color library for Node.js

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages