iot-backend/software/flow/node_modules/npm/lib/utils/is-windows.js

7 lines
233 B
JavaScript
Raw Normal View History

2023-02-23 15:38:30 +01:00
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