Skip to content

Commit

Permalink
color-support@1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed May 24, 2018
1 parent bdc6d01 commit 3a4f3a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 2 additions & 10 deletions has-color.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
'use strict'
var colorSupport = require('color-support')

module.exports = isWin32() || isColorTerm()

function isWin32 () {
return process.platform === 'win32'
}

function isColorTerm () {
var termHasColor = /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i
return !!process.env.COLORTERM || termHasColor.test(process.env.TERM)
}
module.exports = colorSupport().hasBasic
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"homepage": "https://github.com/iarna/gauge",
"dependencies": {
"aproba": "^1.0.3",
"color-support": "^1.1.2",
"console-control-strings": "^1.0.0",
"has-unicode": "^2.0.0",
"object-assign": "^4.1.0",
Expand Down

0 comments on commit 3a4f3a4

Please sign in to comment.