npm.io
1.0.7 • Published 4 years ago

enhance-log

Licence
MIT
Version
1.0.7
Deps
0
Size
4 kB
Vulns
0
Weekly
0

Simple/lazy but pretty console logging for TS/JS projects

Main features:

Log.i("Here's some info for ya");

Log.d("Something debug this way comes");

Log.w("WARNING! Something undesirable happened");

Log.c("#FFC0CB", "Looking pretty in pink");

Log.e("ERROR! Something really bad has happened");

Log.throw("ERROR! I give up");

Set default colours with:

Log.color.info = "blue";
Log.color.debug = "green";
Log.color.warn = "orange";
Log.color.error = "purple";

Installation

__CODE_BLOCK_2__gt; npm i enhance-log

Contributors

Luke Trimby

Licence

MIT