source: trip-planner-front/node_modules/is-windows/index.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 824 bytes
Line 
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});
Note: See TracBrowser for help on using the repository browser.