Tir
It's just a wrapper with colorization around Winston.
Installation
npm install tir
Synopsis
Tir.<info | warn | error | log>
Usage
; Log.info'message %j', ;
The first argument is a string containing zero or more placeholder tokens. Each placeholder token is replaced with the converted value from the corresponding argument.
Supported placeholders are:
- %s - String.
- %d - Number (integer or floating point value).
- %i - Integer.
- %f - Floating point value.
- %j - JSON. Replaced with the string '[Circular]' if the argument contains circular references.
- %% - single percent sign ('%'). This does not consume an argument.
.info
Information message
Log;
.warn
Warning message
Log;
.error
Error message
Log;
.log
Universal method
; Tir;
License
The library is licensed under the MIT (LICENSE.txt) license.