Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rich-console

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rich-console - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

index.js

@@ -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>');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc