leprechaun
A simple, lightweight, and colorful logging utility
leprechaun()
itself is nothing more than an alias for console.log()
. leprechaun.info()
, leprechaun.success()
, leprechaun.warning()
, and leprechaun.error()
prepend appropriate, colored icons in front of the message(s). Well suited for CLIs and beautiful just like a leprechaun’s hidden pot of gold at the end of the rainbow.
Install
npm install leprechaun --save-dev
Usage
var log = require('leprechaun');
var a = 'Test';
var b = 1337;
var c = true;
log(a, b, c);
log.info(a, b, c);
log.success(a, b, c);
log.warning(a, b, c);
log.error(a, b, c);
Changelog
TODO
License
Copyright (c) 2016 websperts
Licensed under the MIT license.
See LICENSE for more info.