1const isWindows = process.platform === 'win32'
2const isWindowsShell = isWindows &&
3  !/^MINGW(32|64)$/.test(process.env.MSYSTEM) && process.env.TERM !== 'cygwin'
4
5exports.isWindows = isWindows
6exports.isWindowsShell = isWindowsShell
7