is-windows.js 248 B

12345678
  1. /**
  2. * Determines if the current platform is Windows
  3. * @returns true if running on Windows, false otherwise
  4. */
  5. export function isWindows() {
  6. return (process.platform === 'win32' ||
  7. /^(msys|cygwin)$/.test(process.env.OSTYPE || ''));
  8. }