UNPKG

@jspm/generator

Version:

Package Import Map Generation Tool

8 lines (6 loc) 1.03 kB
var _globalThis_process_versions, _globalThis_process, _globalThis_process1, _globalThis_process2, _globalThis_process3; export const isNode = typeof ((_globalThis_process = globalThis.process) === null || _globalThis_process === void 0 ? void 0 : (_globalThis_process_versions = _globalThis_process.versions) === null || _globalThis_process_versions === void 0 ? void 0 : _globalThis_process_versions.node) === 'string'; export const isWindows = ((_globalThis_process1 = globalThis.process) === null || _globalThis_process1 === void 0 ? void 0 : _globalThis_process1.platform) === 'win32'; export const PATH = isWindows ? Object.keys((_globalThis_process2 = globalThis.process) === null || _globalThis_process2 === void 0 ? void 0 : _globalThis_process2.env).find((e)=>Boolean(e.match(/^PATH$/i))) || 'Path' : 'PATH'; export const PATHS_SEP = ((_globalThis_process3 = globalThis.process) === null || _globalThis_process3 === void 0 ? void 0 : _globalThis_process3.platform) === 'win32' ? ';' : ':'; //# sourceMappingURL=env.js.map