File: is-windows.js

package info (click to toggle)
npm 9.2.0~ds1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 319,300 kB
  • sloc: javascript: 166,731; sh: 194; makefile: 52; perl: 11
file content (6 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (3)
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