rich-console
Advanced tools
Comparing version 0.0.2 to 0.0.3
/** | ||
* 获得带颜色转义字符的控制台输出模板. | ||
* @param {String}tmpl 包含标签的模板字符串 | ||
* @param {boolean}isBright 是否高亮,default true | ||
* @param {boolean}isBright 是否高亮,default false | ||
* @return {String} | ||
@@ -38,3 +38,3 @@ * @public | ||
// 若是样式开始标记,返回样式开始字符并将样式压栈 | ||
// 若为不支持的颜色直接忽略,否则返回样式开始字符并将样式压栈 | ||
if ($2) { | ||
@@ -50,6 +50,6 @@ var style = ESCAPES[$2]; | ||
// 若是样式开始标记,从样式栈中弹出当前样式并返回 | ||
// 若为不支持的颜色直接忽略,否则从样式栈中弹出当前样式并返回 | ||
// 栈顶样式,若栈为空返回系统默认样式 | ||
if ($3) { | ||
if(ESCAPES[$2]){ | ||
if(ESCAPES[$3]){ | ||
styleStack.pop(); | ||
@@ -56,0 +56,0 @@ var len = styleStack.length; |
{ | ||
"name": "rich-console", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "author": "keven-wang", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5700