2 * is-windows <https://github.com/jonschlinkert/is-windows>
4 * Copyright © 2015-2018, Jon Schlinkert.
5 * Released under the MIT License.
9 if (exports && typeof exports === 'object' && typeof module !== 'undefined') {
10 module.exports = factory();
11 } else if (typeof define === 'function' && define.amd) {
13 } else if (typeof window !== 'undefined') {
14 window.isWindows = factory();
15 } else if (typeof global !== 'undefined') {
16 global.isWindows = factory();
17 } else if (typeof self !== 'undefined') {
18 self.isWindows = factory();
20 this.isWindows = factory();
24 return function isWindows() {
25 return process && (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE));