pm2-master

1.1.3 • Public • Published

PM2 Master Travis branch npm (tag) GitHub issues

Check process is master when run with PM2


Example

const pm2Master = require('pm2-master');
if (pm2Master.isMaster()) {
    console.log('master');
} else {
    console.log('worker');
}
 

Package Sidebar

Install

npm i pm2-master

Weekly Downloads

82

Version

1.1.3

License

ISC

Last publish

Collaborators

  • tutv95
  • acuskitt