Bez popisu

index.js 824B

123456789101112131415161718192021222324252627
  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. (function(factory) {
  8. if (exports && typeof exports === 'object' && typeof module !== 'undefined') {
  9. module.exports = factory();
  10. } else if (typeof define === 'function' && define.amd) {
  11. define([], factory);
  12. } else if (typeof window !== 'undefined') {
  13. window.isWindows = factory();
  14. } else if (typeof global !== 'undefined') {
  15. global.isWindows = factory();
  16. } else if (typeof self !== 'undefined') {
  17. self.isWindows = factory();
  18. } else {
  19. this.isWindows = factory();
  20. }
  21. })(function() {
  22. 'use strict';
  23. return function isWindows() {
  24. return process && (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE));
  25. };
  26. });