UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

37 lines (32 loc) 623 B
/*! * @techmely/utils * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com> * MIT Licensed */ import { envs } from "./chunk-3RC6KXF4.mjs"; // src/process.ts var _process = globalThis.process || /* @__PURE__ */ Object.create(null); var processShims = { versions: {} }; var process = new Proxy(_process, { get(target, prop) { if (prop === "env") { return envs; } if (prop in target) { return target[prop]; } if (prop in processShims) { return processShims[prop]; } } }); var platform = _process.platform || ""; export { _process, process, platform };