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

colorful

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorful - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js
exports.color = require('./lib/color');
exports.colorful = exports.color.colorful;
exports.program = require('./lib/program');
exports.Logging = require('./lib/logging');
exports.Logging = require('./lib/logging').Logging;

@@ -10,2 +10,3 @@ /*

//var tty = require('tty')
var os = require('os');
var codes = {};

@@ -18,4 +19,9 @@

if ('COLORTERM' in process.env) return true;
// windows will support color
if (os.type() === 'Windows_NT') return true;
var term = process.env.TERM.toLowerCase();
var term = process.env.TERM;
if (!term) return false;
term = term.toLowerCase();
if (term.indexOf('color') != -1) return true;

@@ -22,0 +28,0 @@ return term === 'xterm' || term === 'linux';

@@ -134,2 +134,3 @@ /*

module.exports = Logging;
exports = module.exports = new Logging;
exports.Logging = Logging
{
"name": "colorful",
"version": "1.0.1",
"version": "1.0.2",
"description": "colorful if a terminal tool for color, logging and command",

@@ -5,0 +5,0 @@ "keywords": [

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

var Logging = require('../lib/logging');
var Logging = require('../lib/logging').Logging;
var should = require('should');

@@ -3,0 +3,0 @@

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