// PM2 runs the script via an internal wrapper; `argv[1]` points at the wrapper. // PM2 exposes the actual script path in `pm_exec_path`. const normalizedPmExecPath = normalizePathCandidate(env.pm_exec_path, cwd); if (normalizedCurrent && normalizedPmExecPath && normalizedCurrent === normalizedPmExecPath) { returntrue;
}
// Optional wrapper->entry mapping for wrapper launchers that import the real entry. if (normalizedCurrent && normalizedArgv1 && wrapperEntryPairs.length > 0) { const currentBase = path.basename(normalizedCurrent); const argvBase = path.basename(normalizedArgv1); const matched = wrapperEntryPairs.some(
({ wrapperBasename, entryBasename }) =>
currentBase === entryBasename && argvBase === wrapperBasename,
); if (matched) { returntrue;
}
}
returnfalse;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.