index.cjs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. const _path = require('./shared/pathe.BSlhyZSM.cjs');
  4. const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")();
  5. const _platforms = { posix: void 0, win32: void 0 };
  6. const mix = (del = delimiter) => {
  7. return new Proxy(_path._path, {
  8. get(_, prop) {
  9. if (prop === "delimiter") return del;
  10. if (prop === "posix") return posix;
  11. if (prop === "win32") return win32;
  12. return _platforms[prop] || _path._path[prop];
  13. }
  14. });
  15. };
  16. const posix = /* @__PURE__ */ mix(":");
  17. const win32 = /* @__PURE__ */ mix(";");
  18. exports.basename = _path.basename;
  19. exports.dirname = _path.dirname;
  20. exports.extname = _path.extname;
  21. exports.format = _path.format;
  22. exports.isAbsolute = _path.isAbsolute;
  23. exports.join = _path.join;
  24. exports.matchesGlob = _path.matchesGlob;
  25. exports.normalize = _path.normalize;
  26. exports.normalizeString = _path.normalizeString;
  27. exports.parse = _path.parse;
  28. exports.relative = _path.relative;
  29. exports.resolve = _path.resolve;
  30. exports.sep = _path.sep;
  31. exports.toNamespacedPath = _path.toNamespacedPath;
  32. exports.default = posix;
  33. exports.delimiter = delimiter;
  34. exports.posix = posix;
  35. exports.win32 = win32;