is-running

Test if a process with a given pid is running

Test if a process with a given pid is running

Dependency tracking by David

Installation

npm install is-running

Asyncronously

var inspect = require('eyespect').inspector()
var running = require('is-running')
var pid = 897245
running(pid, function(errlive) {
  if (err) {
    inspect(err, 'error testing if process is running')
    return
  }
  inspect(live, 'is process running?')
})

Syncronously

var inspect = require('eyespect').inspector()
var running = require('is-running')
var pid = 897245
var live = running(pid)
inspect(live, 'is process running?')
})

you will need to install eyespect to run the above example npm install eyespect

To run the test suite execute npm test