1.0.0 • Published 3 years ago

chalk-better v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

chalk-better

// w/o chalk-better
console.log(chalk.bgBlue.white.bold('Hello, world!'))

// with chalk-better
chalkBetter("Hello, world!", 'bgBlue white bold')

Install

via npm

$ npm install chalk-better --save

via source

$ git clone git@github.com:z0gSh1u/chalk-better.git

And then copy app.js and app.d.ts to your project as you wish.

Usage

const { chalkBetter } = require('chalk-better')
chalkBetter('your messgae', 'space seperated styles')

Available styles:

  • bold, italic, underline, inverse
  • black, red, green, yellow, blue, magenta, cyan, white, gray
  • bgBlack, bgRed, bgYello, bgBlue,bgMagenta, bgCyan, bgWhite

License

MIT

Highly dependent on chalk .

1.0.0

3 years ago