A small library for adding some color to your CLIs.
$ npm install farben
const farben = require('farben');
console.log(farben('unicorns', 'magenta'));
//=> 'unicorns' (in magenta)
Type: string
Type: string
, array
How text
should be styled.
- reset
- bold
- italic
- underline
- fontDefault
- font2
- font3
- font4
- font5
- font6
- imageNegative
- imagePositive
- black
- red
- green
- yellow
- blue
- magenta
- cyan
- white
- gray
- bg-black
- bg-red
- bg-green
- bg-yellow
- bg-blue
- bg-magenta
- bg-cyan
- bg-white
- bg-gray
MIT © Tobias Herber