1
|
/*!
|
2
|
* is-windows <https://github.com/jonschlinkert/is-windows>
|
3
|
*
|
4
|
* Copyright © 2015-2018, Jon Schlinkert.
|
5
|
* Released under the MIT License.
|
6
|
*/
|
7
|
|
8
|
(function(factory) {
|
9
|
if (exports && typeof exports === 'object' && typeof module !== 'undefined') {
|
10
|
module.exports = factory();
|
11
|
} else if (typeof define === 'function' && define.amd) {
|
12
|
define([], factory);
|
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();
|
19
|
} else {
|
20
|
this.isWindows = factory();
|
21
|
}
|
22
|
})(function() {
|
23
|
'use strict';
|
24
|
return function isWindows() {
|
25
|
return process && (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE));
|
26
|
};
|
27
|
});
|