Comparing version 0.0.4 to 0.0.5
@@ -84,2 +84,3 @@ declare const foreAnsiCode: { | ||
fail: ColorFunc; | ||
def: ColorFunc; | ||
}; | ||
@@ -86,0 +87,0 @@ /** |
@@ -252,3 +252,3 @@ "use strict"; | ||
}; | ||
// × xxxxx | ||
// ✘ xxxxx | ||
colorsTool.fail = function (str) { | ||
@@ -258,2 +258,7 @@ str = typeof str === 'string' ? str : JSON.stringify(str); | ||
}; | ||
// > xxxxx | ||
colorsTool.def = function (str) { | ||
str = typeof str === 'string' ? str : JSON.stringify(str); | ||
return `${colorsTool.gray('>')} ${str?.replace('\r', '')}`; | ||
}; | ||
return colorsTool; | ||
@@ -260,0 +265,0 @@ } |
{ | ||
"name": "color-cc", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Get colors in your node.js console, support commonjs / typescript / esnext, simplified version of colors", | ||
@@ -5,0 +5,0 @@ "author": "Froguard <figure_wf@163.com>", |
19583
450