/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/path-check.js
15 строк
539 B
Unitech
Fix
06 фев 2026, 15:49
06 фев 2026, 15:49
8f26102
Код
Авторство
О чём код?
console.log(__filename); console.log(module.filename); console.log(module.parent); console.log(module.children); console.log(__dirname); // Output specific module properties that should be consistent between direct and PM2 execution // Note: module.id and module.loaded differ between direct node and PM2 wrapped fork (expected) console.log(JSON.stringify({ path: module.path, filename: module.filename, paths: module.paths })); console.log(process.env.PWD); console.log(require.main.filename); console.log(require.main === module);