is-windows.js 233 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 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