Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
292 bytes
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.