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.36 years ago1.1.26 years ago1.1.16 years ago1.1.06 years ago1.0.06 years ago