rich-console
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,3 +9,3 @@ /** | ||
function getRichTmpl(tmpl, isBright){ | ||
if(typeof tmpl == 'object'){ return tmpl; } | ||
if(typeof tmpl != 'string'){ return tmpl; } | ||
@@ -84,3 +84,3 @@ var fontStyle = isBright == true ? '\u001b[1m' : ''; | ||
// 若用户输入的是一个object则调用系统的console输出object结构 | ||
if(typeof cont == 'object'){ | ||
if(typeof cont != 'string'){ | ||
console.log(cont); | ||
@@ -102,3 +102,3 @@ return; | ||
function outputError(cont){ | ||
if(typeof cont == 'object'){ | ||
if(typeof cont != 'string'){ | ||
console.log(cont); | ||
@@ -105,0 +105,0 @@ }else{ |
{ | ||
"name": "rich-console", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "author": "keven-wang", |
var richConsle = require('./index'); | ||
console.log(false); | ||
console.log([1, 2, 3, 4, 5]); | ||
console.log(process.argv); | ||
// if you need to output many times, recommend to use getRichTmpl | ||
@@ -4,0 +8,0 @@ var tmp1 = richConsle.getRichTmpl('%s <red>%s</red> <green>%s</green> <cyan>%s</cyan>'); |
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
5782
112