PM2 Master Check process is master when run with PM2Exampleconst pm2Master = require('pm2-master'); if (pm2Master.isMaster()) { console.log('master'); } else { console.log('worker'); }4 keywords2 dependents5 versionspm2isMastermastercluster@everything-registry/sub-chunk-2450@infinitebrahmanuniverse/nolb-pm1.1.38 years ago1.1.28 years ago1.1.18 years ago1.1.08 years ago1.0.08 years ago