7 lines
233 B
JavaScript
7 lines
233 B
JavaScript
|
const isWindows = process.platform === 'win32'
|
||
|
const isWindowsShell = isWindows &&
|
||
|
!/^MINGW(32|64)$/.test(process.env.MSYSTEM) && process.env.TERM !== 'cygwin'
|
||
|
|
||
|
exports.isWindows = isWindows
|
||
|
exports.isWindowsShell = isWindowsShell
|