smart-energy-monitor/software/flow/node_modules/npm/lib/utils/is-windows.js

7 lines
233 B
JavaScript

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