This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
is-pm2 with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Detect if your code is running under PM2.
$ npm install --save is-pm2
const isPm2 = require('is-pm2'); isPm2(); //=> 'true' if your code is running under [PM2](https://www.npmjs.com/package/pm2)
MIT © Leo Lozach