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.2 to 0.0.3

8

index.js
/**
* 获得带颜色转义字符的控制台输出模板.
* @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",

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