Pull merge.
[yaffs-website] / node_modules / gauge / has-color.js
1 'use strict'
2
3 module.exports = isWin32() || isColorTerm()
4
5 function isWin32 () {
6   return process.platform === 'win32'
7 }
8
9 function isColorTerm () {
10   var termHasColor = /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i
11   return !!process.env.COLORTERM || termHasColor.test(process.env.TERM)
12 }