1.0.1 • Published 6 years ago

core.node.log v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

core.node.log

easily log colorful messages to the NodeJS console

Usage

This plugin enables easy logging of colorful messages to the NodeJS console.

It exposes a 'log' function on the core object. string arguments to this function are parsed and colored accordingly.

To color a piece of your string wrap it in parantheses and prepend with a '#' and then the name of the color you want.

core.plugin([
  require('core.node.colors'),
  require('core.node.log')
]);

core.log(' #green(√) #yellow( Did the stuff! )')

Available colors:

#yellow

#purple

#blue

#red

#cyan

#grey

#green

1.0.1

6 years ago

1.0.0

6 years ago