is-pm2 (npm): Detect if your code is running under PM2.
Keywords: pm2|process-manager|javascript|js|manager|node|nodejs|process