Initial commit
[yaffs-website] / node_modules / is-windows / index.js
1 /*! is-windows v0.2.0 | MIT LICENSE (c) 2015 | https://github.com/jonschlinkert/is-windows */
2 (function (root, factory) {
3   if (typeof define === 'function' && define.amd) {
4     // AMD
5     define(factory);
6   } else if (typeof exports === 'object') {
7     // Node.js
8     module.exports = factory;
9   } else {
10     // Browser
11     root.isWindows = factory;
12   }
13 }(this, function () {
14   'use strict';
15
16   return (function isWindows() {
17     if (typeof process === 'undefined' || !process) {
18       return false;
19     }
20     return process.platform === 'win32';
21   }());
22 }));