is-running

Test if a process with a given pid is running

npm install is-running
20 downloads in the last day
114 downloads in the last week
475 downloads in the last month

Test if a process with a given pid is running

Build Status Dependency Status Dependency tracking by David

Installation

npm install is-running

Usage

Asyncronously

var inspect = require('eyespect').inspector()
var running = require('is-running')
var pid = 897245
running(pid, function(err, live) {
  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

Test

To run the test suite execute npm test

npm loves you