Comparing version 1.0.1 to 1.0.2
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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15792
435
0
2