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.39 years ago1.1.29 years ago1.1.19 years ago1.1.09 years ago1.0.09 years ago