Files
SnowLuma/.pnpm-store/v11/files/3e/1fdf8bfa99db0eea2bc9d9face68b59bcf328cefe39b149bbb4425a1fa18dc8b25b7515f062184c343672bd74c19f0d79f8fdbec1069df3c9499375db8af48
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

9 lines
248 B
Plaintext

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