马宇豪
2024-08-21 b941ca4d159d7af138bc0a2fa7e04b1e9fdd61d0
1
2
3
4
const isWindowsShell = (process.platform === 'win32') &&
  !/^MINGW(32|64)$/.test(process.env.MSYSTEM) && process.env.TERM !== 'cygwin'
 
exports.isWindowsShell = isWindowsShell