Label log
label in console.log.
Install
npm install label-log
API
label.front()
label
label from the front!
label.back()
label
label from the back!
Parameters:
-
label array:
must
[type: array]: some labels you want to label to this console log. -
background color array:
optional
[type: array]: background color for each label, if the length is not enough for the array. The last color will place for the rest. The default value isgreen
. -
color array:
optional
[type: array]: font color for each label, if the length is not enough for the array. The last color will place for the rest. The default value isyellow
. -
message:
must
[type: string]: console message you want to appear
background color support:
- grey
- black
- yellow
- red
- green
- blue
- white
- cyan
- magenta
font support:
- bold
- underline
- strikethrough
- italic
- inverse
- grey
- black
- yellow
- red
- green
- blue
- white
- cyan
- magenta
Example:
var label = ; // front label;label;label;label;label; // Back label;label;label;label;label;
Preview:
License
MIT @chilijung