1.1.0 • Published 6 years ago

farben v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Install

$ npm install farben

Usage

const farben = require('farben');

console.log(farben('unicorns', 'magenta'));
//=> 'unicorns' (in magenta)

API

farben(text, style)

text

Type: string

style

Type: string, array

How text should be styled.

Supported styles
  • 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

License

MIT © Tobias Herber

1.1.0

6 years ago

1.0.0

6 years ago