0.1.0 • Published 7 years ago

xib v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

xib

Basic terminal styling

  • No dependencies
  • Doesn't extend String.prototype
  • Tag string literal based syntax

Installation

$ npm install xib

Usage

const xib = require('xib');

console.log(xib.bold.green.yellowBackground`Hello, world!`)

You may also set current style just calling xib:

console.log(xib.red())
console.log('Hello, world!')    // will be red
console.log(xib.reset())        // reset styles

Styles

Modifiers

  • .reset
  • .bold
  • .dim
  • .italic (usually not supported)
  • .underline
  • .blink
  • .inverse
  • .hidden
  • .strikethrough (usually not supported)

Colors

  • .black
  • .red
  • .green
  • .yellow
  • .blue
  • .magenta
  • .cyan
  • .white
  • .gray (aka .grey or .brightBlack)
  • .brightRed
  • .brightGreen
  • .brightYellow
  • .brightBlue
  • .brightMagenta
  • .brightCyan
  • .brightWhite

Background colors

  • .blackBackground
  • .redBackground
  • .greenBackground
  • .yellowBackground
  • .blueBackground
  • .magentaBackground
  • .cyanBackground
  • .whiteBackground
  • .grayBackground (aka .greyBackground or .brightBlackBackground)
  • .brightRedBackground
  • .brightGreenBackground
  • .brightYellowBackground
  • .brightBlueBackground
  • .brightMagentaBackground
  • .brightCyanBackground
  • .brightWhiteBackground

License

MIT

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago