mono/packages/commons/dist/os.cjs
2025-01-28 13:42:27 +01:00

43 lines
1.5 KiB
JavaScript

var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var os_exports = {};
__export(os_exports, {
EArch: () => EArch,
EPlatform: () => EPlatform,
is_windows: () => is_windows
});
module.exports = __toCommonJS(os_exports);
var EPlatform = /* @__PURE__ */ ((EPlatform2) => {
EPlatform2["Linux"] = "linux";
EPlatform2["Windows"] = "win32";
EPlatform2["OSX"] = "darwin";
return EPlatform2;
})(EPlatform || {});
var EArch = /* @__PURE__ */ ((EArch2) => {
EArch2["x64"] = "64";
EArch2["x32"] = "32";
return EArch2;
})(EArch || {});
const is_windows = () => process && process.platform === "win32";
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
EArch,
EPlatform,
is_windows
});
//# sourceMappingURL=os.cjs.map