Nitrate Processed Mincemeat
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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');
}
 

install

npm i pm2-master

Downloadsweekly downloads

20

version

1.1.3

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability