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!'))))$ npm i @nuff-said/colorAll 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
All contributions are welcome! Feel free to file an issue, point out an optimization or even push a PR!
This project uses the GPL-3.0 license.