node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

process-exists

process-exists Build Status

Check if a process is running

Install

$ npm install process-exists

Usage

const processExists = require('process-exists');
 
processExists(process.pid).then(exists => {
    console.log(exists);
    //=> true
});

API

processExists(input)

Returns a Promise<boolean>.

input

Type: number string

Process ID or name to check.

License

MIT © Sindre Sorhus