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.4 to 1.0.5

isNode.js

2

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

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

@@ -0,3 +1,13 @@

const isNode = require('./isNode');
module.exports = function processLogLine(value, colorFormatter, bgColorFormatter) {
let output = value;
if (output && typeof output === 'object') {
if (isNode()) {
output = require('util').inspect(value);
} else {
output = JSON.stringify(output, null, 2);
}
}
if (typeof colorFormatter === 'function') {

@@ -4,0 +14,0 @@ output = colorFormatter(output);

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