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.1.0 to 1.1.1

.npmignore

10

error.js

@@ -1,5 +0,7 @@

const chalk = require('chalk');
const processLogLine = require('./processLogLine');
import chalk from 'chalk';
import {
processLogLine,
} from './processLogLine';
module.exports = function error(value, colorFormatter, bgColorFormatter) {
export function error(value, colorFormatter, bgColorFormatter) {
console.error(processLogLine(

@@ -10,2 +12,2 @@ value,

));
};
}

0

index.js

@@ -0,0 +0,0 @@ #!/usr/bin/env node

@@ -1,1 +0,5 @@

module.exports = () => typeof process !== 'undefined' && process.versions && process.versions.node;
export function isNode() {
return typeof process !== 'undefined' &&
process.versions &&
process.versions.node;
}

@@ -1,5 +0,6 @@

const chalk = require('chalk');
const processLogLine = require('./processLogLine');
import {
processLogLine,
} from './processLogLine';
module.exports = function log(value, colorFormatter, bgColorFormatter) {
export function log(value, colorFormatter, bgColorFormatter) {
console.log(processLogLine(

@@ -10,2 +11,2 @@ value,

));
};
}

@@ -1,11 +0,12 @@

const error = require('./error');
const log = require('./log');
const processLogLine = require('./processLogLine');
const warn = require('./warn');
module.exports = {
export {
error,
} from './error';
export {
log,
} from './log';
export {
processLogLine,
} from './processLogLine';
export {
warn,
};
} from './warn';
{
"name": "colorful-logging",
"version": "1.1.0",
"version": "1.1.1",
"description": "A simple logging module with pleasing default colors and optional color arguments.",

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

@@ -1,2 +0,4 @@

const isNode = require('./isNode');
import {
isNode,
} from './isNode';

@@ -3,0 +5,0 @@ module.exports = function processLogLine(value, colorFormatter, bgColorFormatter) {

@@ -1,6 +0,10 @@

const chalk = require('chalk');
const isNode = require('./isNode');
const processLogLine = require('./processLogLine');
import chalk from 'chalk';
import {
isNode,
} from './isNode';
import {
processLogLine,
} from './processLogLine';
module.exports = function warn(value, colorFormatter, bgColorFormatter) {
export function warn(value, colorFormatter, bgColorFormatter) {
const logLine = processLogLine(

@@ -13,2 +17,2 @@ value,

console.warn(logLine);
};
}
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