New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

colorful-logging

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorful-logging - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

8

error.js
const chalk = require('chalk');
const processLogLine = require('./processLogLine');
const {
inspect: { styles },
} = require('util');
module.exports = function error(value, colorFormatter, bgColorFormatter) {
if (value instanceof Error) {
console.error(processLogLine(
value.stack,
value.stack || value.message || value,
colorFormatter || chalk.red,
bgColorFormatter,
));
));
} else {

@@ -16,0 +12,0 @@ console.error(processLogLine(

{
"name": "colorful-logging",
"version": "1.0.3",
"version": "1.0.4",
"description": "A simple logging module with pleasing default colors and optional color arguments.",

@@ -5,0 +5,0 @@ "main": "index.js",

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