How to use the default function from process
Find comprehensive JavaScript process.default code examples handpicked from public code repositorys.
GitHub: gethexon/hexon
2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149
// node_modules/.pnpm/chalk@5.0.1/node_modules/chalk/source/vendor/supports-color/index.js var import_node_process = __toESM(require("process"), 1); var import_node_os = __toESM(require("os"), 1); var import_node_tty = __toESM(require("tty"), 1); function hasFlag(flag, argv = import_node_process.default.argv) { const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; const position = argv.indexOf(prefix + flag); const terminatorPosition = argv.indexOf("--"); return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
14
66
0
+ 3 other calls in file
40 41 42 43 44 45 46 47 48 49 50 51
rendererCrashReason: processUtilsSettings.rendererCrashReason }; }); _electron.default.ipcMain.handle(PROCESS_UTILS_GET_MEMORY_INFO, async _ => { return _process.default.getProcessMemoryInfo(); }); _electron.default.ipcMain.handle(PROCESS_UTILS_FLUSH_DNS_CACHE, async _ => { const defaultSession = _electron.default.session.defaultSession;
4
5
0
+ 3 other calls in file
GitHub: vladmandic/pilogger
462 463 464 465 466 467 468 469 470 471 472
// node_modules/.pnpm/chalk@5.2.0/node_modules/chalk/source/vendor/supports-color/index.js var import_node_process = __toESM(require("process"), 1); var import_node_os = __toESM(require("os"), 1); var import_node_tty = __toESM(require("tty"), 1); function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) { const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--"; const position = argv.indexOf(prefix + flag); const terminatorPosition = argv.indexOf("--"); return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
2
2
0
1705 1706 1707 1708 1709 1710 1711 1712 1713 1714
maxBuffer: DEFAULT_MAX_BUFFER, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: options.cwd || import_node_process2.default.cwd(), execPath: import_node_process2.default.execPath, encoding: "utf8", reject: true, cleanup: true,
0
5
0
+ 4 other calls in file
GitHub: HiddenCirno/MiniHUD
140 141 142 143 144 145 146 147 148 149
req.end(); }); }; const rd = require('readline'); const rl = rd.createInterface({ input: process_1.default.stdin, output: process_1.default.stdout }); this.tr = false; const fp = `${ModPath}src/mod.ts`;
0
0
1
GitHub: tnfsp/website
352 353 354 355 356 357 358 359 360 361
options = value; } this.data = {}; this.messages = []; this.history = []; this.cwd = import_process.default.cwd(); this.value; this.stored; this.result; this.map;
0
0
0
GitHub: bad-gal/3dDemo
30 31 32 33 34 35 36 37 38 39
const http_1 = __importDefault(require("http")); const socket_io_1 = require("socket.io"); const path_1 = __importDefault(require("path")); const process_1 = __importDefault(require("process")); dotenv.config(); const port = process_1.default.env.PORT; const FPS = 30; class App { constructor() { const app = (0, express_1.default)();
0
0
1
process.exit is the most popular function in process (513 examples)