0.2.1 • Published 6 years ago

awesome-printer v0.2.1

Weekly downloads
8
License
MIT
Repository
gitlab
Last release
6 years ago

AWESOME-PRINTER

Instalation

npm i awesome-printer

Usage

const printer = require('awesome-printer');

printer.print('text');
printer.print('blue-text', printer.color.blue);
printer.print('blue-bold-text', printer.color.blue, printer.bold);

printer.err('whoops! a wild error appeared');
printer.warn('a warn is fine, i guess...'); // no a warn isn't good :D

Its also works with exported objects !!!

const myObject = require('./myAwesomeObjectFile').object;
printer.print(myObject, printer.color.magenta);

And here is what you got:

cool!

COLORS

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • gray
  • redBright
  • greenBright
  • yellowBright
  • blueBright
  • magentaBright
  • cyanBright
  • whiteBright

Authors

Álvaro Bellido Enguidanos

License

MIT

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago