Skip to content

easily log colourful messages to the NodeJS console

Notifications You must be signed in to change notification settings

ido-ofir/core.node.log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

easily log colourful messages to the NodeJS console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published