colur
1.0.0
大丈夫、それはそれほどクールではありませんが、色のある様式化されたロガーです!テストやその他のコマンドコンソールアクティビティには、シンプルな様式化されたColur Loggerが必要でした。詩これはノードタルです。
colur(<log-string>, <option>)
colur(<log-string>)
return
>常に様式化されたロガー文字列を返します<log-string>
-> String
<option>
-> Object
<option>.color
> String
<option>.stringCaps
> Boolean => true
|>
and <|
を含むキャップを開始および終了します。<option>.endColor
> Boolean => true
bgBlue.white.bold
であるエンドカラーを使用します。end
<option>.startColor
> Boolean => true
bgGreen.white.bold
のデフォルトの色でもある開始色を使用します。<option>.consoleType
> String
info
です。console
部品を省略し、モディファイアのようなerror
を含めるだけです。<option>.strReturn
> Boolean => true
console
and just returns the stylized logger string.<option>.error
> Boolean => true
console
をerror
に設定し、 bgRed.white.bold
の色を使用するプリセット